{smcl}
{com}{sf}{ul off}{txt}{.-}
      name:  {res}<unnamed>
       {txt}log:  {res}C:\Users\Theodore McLauchlin\Dropbox\Military training - selection paper\ISQ Submission\Final submission\traintheworld.smcl
  {txt}log type:  {res}smcl
 {txt}opened on:  {res}22 Feb 2024, 14:29:20
{txt}
{com}. set more off
{txt}
{com}. 
. //Packages required: coefplot and outreg2
. ssc install coefplot, replace
{txt}checking {hilite:coefplot} consistency and verifying not already installed...
all files already exist and are up to date.

{com}. ssc install outreg2, replace 
{txt}checking {hilite:outreg2} consistency and verifying not already installed...
all files already exist and are up to date.

{com}. 
. use traintheworld.dta, clear
{txt}(Train the World ISQ replication data)

{com}. 
. //sets time-series structure and graph appearance
. xtset ccode year
{res}{txt}{col 8}panel variable:  {res}ccode (unbalanced)
{txt}{col 9}time variable:  {res}{col 25}year, 1993 to 2018, but with gaps
{txt}{col 17}delta:  {res}1 unit
{txt}
{com}. set scheme s2simple
{txt}
{com}. 
. 
. //text claims (Data and Methods section) regarding threat distance and training for states for which, from 2001 onward, the Departments of State and Defense do not need to report training expenditures (NATO, Australia, New Zealand, Japan)
. ttest minthreatdist if ccode!=2 & year > 1998 & regforce==1, by(NATOAndOthers)

{txt}Two-sample t test with equal variances
{hline 9}{c TT}{hline 68}
   Group{col 10}{c |}{col 16}Obs{col 27}Mean{col 35}Std. Err.{col 47}Std. Dev.{col 59}[95% Conf. Interval]
{hline 9}{c +}{hline 68}
       0 {c |}{res}{col 12}   2942{col 22} 3108.148{col 34} 57.99258{col 46}  3145.53{col 58} 2994.438{col 70} 3221.858
       {txt}1 {c |}{res}{col 12}    547{col 22} 1921.811{col 34}  78.7379{col 46} 1841.524{col 58} 1767.145{col 70} 2076.477
{txt}{hline 9}{c +}{hline 68}
combined {c |}{res}{col 12}   3489{col 22} 2922.156{col 34} 50.95716{col 46} 3009.925{col 58} 2822.247{col 70} 3022.065
{txt}{hline 9}{c +}{hline 68}
    diff {c |}{res}{col 22} 1186.337{col 34} 138.7223{col 58} 914.3518{col 70} 1458.322
{txt}{hline 9}{c BT}{hline 68}
    diff = mean({res}0{txt}) - mean({res}1{txt})                                      t = {res}  8.5519
{txt}Ho: diff = 0                                     degrees of freedom = {res}    3487

    {txt}Ha: diff < 0                 Ha: diff != 0                 Ha: diff > 0
 Pr(T < t) = {res}1.0000         {txt}Pr(|T| > |t|) = {res}0.0000          {txt}Pr(T > t) = {res}0.0000
{txt}
{com}. ttest log_trainees if ccode!=2 & year > 1998 & year < 2001 & regforce==1, by(NATOAndOthers)

{txt}Two-sample t test with equal variances
{hline 9}{c TT}{hline 68}
   Group{col 10}{c |}{col 16}Obs{col 27}Mean{col 35}Std. Err.{col 47}Std. Dev.{col 59}[95% Conf. Interval]
{hline 9}{c +}{hline 68}
       0 {c |}{res}{col 12}    302{col 22}  3.66824{col 34} .1323543{col 46} 2.300072{col 58} 3.407783{col 70} 3.928697
       {txt}1 {c |}{res}{col 12}     42{col 22} 3.144083{col 34} .5146323{col 46} 3.335199{col 58} 2.104762{col 70} 4.183404
{txt}{hline 9}{c +}{hline 68}
combined {c |}{res}{col 12}    344{col 22} 3.604244{col 34} .1320864{col 46} 2.449838{col 58} 3.344442{col 70} 3.864045
{txt}{hline 9}{c +}{hline 68}
    diff {c |}{res}{col 22}  .524157{col 34} .4030429{col 58}-.2685981{col 70} 1.316912
{txt}{hline 9}{c BT}{hline 68}
    diff = mean({res}0{txt}) - mean({res}1{txt})                                      t = {res}  1.3005
{txt}Ho: diff = 0                                     degrees of freedom = {res}     342

    {txt}Ha: diff < 0                 Ha: diff != 0                 Ha: diff > 0
 Pr(T < t) = {res}0.9028         {txt}Pr(|T| > |t|) = {res}0.1943          {txt}Pr(T > t) = {res}0.0972
{txt}
{com}. ttest log_trainexp if ccode!=2 & year > 1998 & year < 2001 & regforce==1, by(NATOAndOthers)

{txt}Two-sample t test with equal variances
{hline 9}{c TT}{hline 68}
   Group{col 10}{c |}{col 16}Obs{col 27}Mean{col 35}Std. Err.{col 47}Std. Dev.{col 59}[95% Conf. Interval]
{hline 9}{c +}{hline 68}
       0 {c |}{res}{col 12}    302{col 22} 10.62677{col 34} .2986721{col 46} 5.190368{col 58} 10.03902{col 70} 11.21452
       {txt}1 {c |}{res}{col 12}     42{col 22} 7.620723{col 34} 1.204207{col 46} 7.804151{col 58} 5.188778{col 70} 10.05267
{txt}{hline 9}{c +}{hline 68}
combined {c |}{res}{col 12}    344{col 22} 10.25976{col 34} .3044854{col 46} 5.647363{col 58} 9.660862{col 70} 10.85865
{txt}{hline 9}{c +}{hline 68}
    diff {c |}{res}{col 22} 3.006051{col 34} .9170945{col 58} 1.202195{col 70} 4.809906
{txt}{hline 9}{c BT}{hline 68}
    diff = mean({res}0{txt}) - mean({res}1{txt})                                      t = {res}  3.2778
{txt}Ho: diff = 0                                     degrees of freedom = {res}     342

    {txt}Ha: diff < 0                 Ha: diff != 0                 Ha: diff > 0
 Pr(T < t) = {res}0.9994         {txt}Pr(|T| > |t|) = {res}0.0012          {txt}Pr(T > t) = {res}0.0006
{txt}
{com}. 
. //text claims (Data and Methods section) regarding traning in states about to join NATO during the period the paper covers (1999-2018)
. ttest log_trainees if NATOAndOthers==0 & year > 1998 & regforce==1, by(about_to_join_NATO)

{txt}Two-sample t test with equal variances
{hline 9}{c TT}{hline 68}
   Group{col 10}{c |}{col 16}Obs{col 27}Mean{col 35}Std. Err.{col 47}Std. Dev.{col 59}[95% Conf. Interval]
{hline 9}{c +}{hline 68}
       0 {c |}{res}{col 12}   2914{col 22} 4.430174{col 34} .0404831{col 46} 2.185338{col 58} 4.350796{col 70} 4.509553
       {txt}1 {c |}{res}{col 12}     28{col 22}  5.76511{col 34} .1401749{col 46} .7417358{col 58} 5.477495{col 70} 6.052725
{txt}{hline 9}{c +}{hline 68}
combined {c |}{res}{col 12}   2942{col 22} 4.442879{col 34} .0401903{col 46} 2.179929{col 58} 4.364075{col 70} 4.521683
{txt}{hline 9}{c +}{hline 68}
    diff {c |}{res}{col 22}-1.334936{col 34} .4132801{col 58}-2.145284{col 70}-.5245883
{txt}{hline 9}{c BT}{hline 68}
    diff = mean({res}0{txt}) - mean({res}1{txt})                                      t = {res} -3.2301
{txt}Ho: diff = 0                                     degrees of freedom = {res}    2940

    {txt}Ha: diff < 0                 Ha: diff != 0                 Ha: diff > 0
 Pr(T < t) = {res}0.0006         {txt}Pr(|T| > |t|) = {res}0.0013          {txt}Pr(T > t) = {res}0.9994
{txt}
{com}. ttest log_trainexp if NATOAndOthers==0 & year > 1998 & regforce==1, by(about_to_join_NATO)

{txt}Two-sample t test with equal variances
{hline 9}{c TT}{hline 68}
   Group{col 10}{c |}{col 16}Obs{col 27}Mean{col 35}Std. Err.{col 47}Std. Dev.{col 59}[95% Conf. Interval]
{hline 9}{c +}{hline 68}
       0 {c |}{res}{col 12}   2914{col 22}  12.4409{col 34} .0806409{col 46} 4.353113{col 58} 12.28278{col 70} 12.59902
       {txt}1 {c |}{res}{col 12}     28{col 22} 14.40812{col 34} .1140368{col 46} .6034262{col 58} 14.17414{col 70} 14.64211
{txt}{hline 9}{c +}{hline 68}
combined {c |}{res}{col 12}   2942{col 22} 12.45962{col 34}  .079958{col 46} 4.336937{col 58} 12.30284{col 70}  12.6164
{txt}{hline 9}{c +}{hline 68}
    diff {c |}{res}{col 22}-1.967225{col 34} .8228729{col 58}-3.580691{col 70}-.3537598
{txt}{hline 9}{c BT}{hline 68}
    diff = mean({res}0{txt}) - mean({res}1{txt})                                      t = {res} -2.3907
{txt}Ho: diff = 0                                     degrees of freedom = {res}    2940

    {txt}Ha: diff < 0                 Ha: diff != 0                 Ha: diff > 0
 Pr(T < t) = {res}0.0084         {txt}Pr(|T| > |t|) = {res}0.0169          {txt}Pr(T > t) = {res}0.9916
{txt}
{com}. 
. //TABLE 1: Threats and US training (country-years)
. tab threat traineesbin if NATOAndOthers==0 & year >=1999 & regforce==1, row
{txt}
{c TLC}{hline 16}{c TRC}
{c |} Key{col 18}{c |}
{c LT}{hline 16}{c RT}
{c |}{space 3}{it:frequency}{col 18}{c |}
{c |}{space 1}{it:row percentage}{col 18}{c |}
{c BLC}{hline 16}{c BRC}

           {c |}   Has any trainees
US-identif {c |}   trained by the US
ied threat {c |}         0          1 {c |}     Total
{hline 11}{c +}{hline 22}{c +}{hline 10}
         0 {c |}{res}       195      2,658 {txt}{c |}{res}     2,853 
           {txt}{c |}{res}      6.83      93.17 {txt}{c |}{res}    100.00 
{txt}{hline 11}{c +}{hline 22}{c +}{hline 10}
         1 {c |}{res}        50         39 {txt}{c |}{res}        89 
           {txt}{c |}{res}     56.18      43.82 {txt}{c |}{res}    100.00 
{txt}{hline 11}{c +}{hline 22}{c +}{hline 10}
     Total {c |}{res}       245      2,697 {txt}{c |}{res}     2,942 
           {txt}{c |}{res}      8.33      91.67 {txt}{c |}{res}    100.00 

{txt}
{com}. 
. //FIGURE 1: Percentage of non-threat states trained by US, with lowess smooth
. preserve
{txt}
{com}. keep if NATOAndOthers==0
{txt}(1348 observations deleted)

{com}. keep if threat==0
{txt}(92 observations deleted)

{com}. keep if regforce==1
{txt}(389 observations deleted)

{com}. collapse (sum) traineesbin dummy, by(year)
{txt}
{com}. gen traineespct = traineesbin/dummy*100
{txt}
{com}. keep if year >=1999
{txt}(2 observations deleted)

{com}. twoway (scatter traineespct year) (lowess traineespct year), legend(off) ytitle("Percentage of countries trained")
{res}{txt}
{com}. restore
{txt}
{com}. graph export figure1.tif, width(1200) replace
{txt}(file figure1.tif written in TIFF format)

{com}. 
. 
. //TABLE 2 -- MAIN RESULTS TABLE
. //external threats
. xtreg log_trainees coup_suc_lag1 log_trainees_lag1 threat_lag1 c.mingtidist_lag1##c.ideal_point_lag1 if NATOAndOthers==0 & year>=1999 & iraqaf==0 & regforce==1, re vce(robust)
{res}
{txt}Random-effects GLS regression                   Number of obs      = {res}     2690
{txt}Group variable: {res}ccode                           {txt}Number of groups   = {res}      151

{txt}R-sq:  within  = {res}0.3176                         {txt}Obs per group: min = {res}        4
{txt}       between = {res}0.9811                                        {txt}avg = {res}     17.8
{txt}       overall = {res}0.7232                                        {txt}max = {res}       19

                                                {txt}Wald chi2({res}6{txt})       = {res}  4338.23
{txt}corr(u_i, X)   = {res}0{txt} (assumed)                    Prob > chi2        =    {res}0.0000

{txt}{ralign 102:(Std. Err. adjusted for {res:151} clusters in ccode)}
{hline 37}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 38}{c |}{col 50}    Robust
{col 1}                        log_trainees{col 38}{c |}      Coef.{col 50}   Std. Err.{col 62}      z{col 70}   P>|z|{col 78}     [95% Con{col 91}f. Interval]
{hline 37}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 23}coup_suc_lag1 {c |}{col 38}{res}{space 2}-.6097324{col 50}{space 2} .4299021{col 61}{space 1}   -1.42{col 70}{space 3}0.156{col 78}{space 4}-1.452325{col 91}{space 3} .2328602
{txt}{space 19}log_trainees_lag1 {c |}{col 38}{res}{space 2} .8095887{col 50}{space 2} .0184025{col 61}{space 1}   43.99{col 70}{space 3}0.000{col 78}{space 4} .7735204{col 91}{space 3} .8456569
{txt}{space 25}threat_lag1 {c |}{col 38}{res}{space 2}-.6248819{col 50}{space 2} .1150286{col 61}{space 1}   -5.43{col 70}{space 3}0.000{col 78}{space 4}-.8503338{col 91}{space 3}  -.39943
{txt}{space 21}mingtidist_lag1 {c |}{col 38}{res}{space 2} .0506381{col 50}{space 2} .0205898{col 61}{space 1}    2.46{col 70}{space 3}0.014{col 78}{space 4} .0102829{col 91}{space 3} .0909933
{txt}{space 20}ideal_point_lag1 {c |}{col 38}{res}{space 2} .0809629{col 50}{space 2} .0528662{col 61}{space 1}    1.53{col 70}{space 3}0.126{col 78}{space 4}-.0226531{col 91}{space 3} .1845788
{txt}{space 36} {c |}
c.mingtidist_lag1#c.ideal_point_lag1 {c |}{col 38}{res}{space 2} .0525424{col 50}{space 2} .0228463{col 61}{space 1}    2.30{col 70}{space 3}0.021{col 78}{space 4} .0077646{col 91}{space 3} .0973202
{txt}{space 36} {c |}
{space 31}_cons {c |}{col 38}{res}{space 2} .9141189{col 50}{space 2} .1004084{col 61}{space 1}    9.10{col 70}{space 3}0.000{col 78}{space 4}  .717322{col 91}{space 3} 1.110916
{txt}{hline 37}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
                             sigma_u {c |} {res}         0
                             {txt}sigma_e {c |} {res} .99534441
                                 {txt}rho {c |} {res}         0{txt}   (fraction of variance due to u_i)
{hline 37}{c BT}{hline 64}

{com}. outreg2 using table2.xls, replace title(Cross-section time-series results, with country random effects) ctitle(Trainees) label
{txt}{browse `"table2.xls"'}
{browse `"C:\Users\Theodore McLauchlin\Dropbox\Military training - selection paper\ISQ Submission\Final submission"' :dir}{com} : {txt}{stata `"seeout using "table2.txt", label"':seeout}

{com}. xtreg log_trainexp coup_suc_lag1 log_trainexp_lag1 threat_lag1 c.mingtidist_lag1##c.ideal_point_lag1 if NATOAndOthers==0 & year>=1999 & iraqaf==0 & regforce==1, re vce(robust)
{res}
{txt}Random-effects GLS regression                   Number of obs      = {res}     2690
{txt}Group variable: {res}ccode                           {txt}Number of groups   = {res}      151

{txt}R-sq:  within  = {res}0.2726                         {txt}Obs per group: min = {res}        4
{txt}       between = {res}0.9717                                        {txt}avg = {res}     17.8
{txt}       overall = {res}0.7264                                        {txt}max = {res}       19

                                                {txt}Wald chi2({res}6{txt})       = {res}  1780.42
{txt}corr(u_i, X)   = {res}0{txt} (assumed)                    Prob > chi2        =    {res}0.0000

{txt}{ralign 102:(Std. Err. adjusted for {res:151} clusters in ccode)}
{hline 37}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 38}{c |}{col 50}    Robust
{col 1}                        log_trainexp{col 38}{c |}      Coef.{col 50}   Std. Err.{col 62}      z{col 70}   P>|z|{col 78}     [95% Con{col 91}f. Interval]
{hline 37}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 23}coup_suc_lag1 {c |}{col 38}{res}{space 2}-2.055298{col 50}{space 2} .9286274{col 61}{space 1}   -2.21{col 70}{space 3}0.027{col 78}{space 4}-3.875374{col 91}{space 3}-.2352221
{txt}{space 19}log_trainexp_lag1 {c |}{col 38}{res}{space 2} .7753021{col 50}{space 2} .0292499{col 61}{space 1}   26.51{col 70}{space 3}0.000{col 78}{space 4} .7179734{col 91}{space 3} .8326309
{txt}{space 25}threat_lag1 {c |}{col 38}{res}{space 2}-1.982635{col 50}{space 2} .4351843{col 61}{space 1}   -4.56{col 70}{space 3}0.000{col 78}{space 4} -2.83558{col 91}{space 3}-1.129689
{txt}{space 21}mingtidist_lag1 {c |}{col 38}{res}{space 2} .0857437{col 50}{space 2} .0387012{col 61}{space 1}    2.22{col 70}{space 3}0.027{col 78}{space 4} .0098908{col 91}{space 3} .1615967
{txt}{space 20}ideal_point_lag1 {c |}{col 38}{res}{space 2}  .189351{col 50}{space 2} .1253567{col 61}{space 1}    1.51{col 70}{space 3}0.131{col 78}{space 4}-.0563436{col 91}{space 3} .4350457
{txt}{space 36} {c |}
c.mingtidist_lag1#c.ideal_point_lag1 {c |}{col 38}{res}{space 2} .1108092{col 50}{space 2}  .050138{col 61}{space 1}    2.21{col 70}{space 3}0.027{col 78}{space 4} .0125405{col 91}{space 3} .2090779
{txt}{space 36} {c |}
{space 31}_cons {c |}{col 38}{res}{space 2}  3.06196{col 50}{space 2} .4054044{col 61}{space 1}    7.55{col 70}{space 3}0.000{col 78}{space 4} 2.267382{col 91}{space 3} 3.856538
{txt}{hline 37}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
                             sigma_u {c |} {res}         0
                             {txt}sigma_e {c |} {res}  1.887966
                                 {txt}rho {c |} {res}         0{txt}   (fraction of variance due to u_i)
{hline 37}{c BT}{hline 64}

{com}. outreg2 using table2.xls, append ctitle(Expenditures) label
{txt}{browse `"table2.xls"'}
{browse `"C:\Users\Theodore McLauchlin\Dropbox\Military training - selection paper\ISQ Submission\Final submission"' :dir}{com} : {txt}{stata `"seeout using "table2.txt", label"':seeout}

{com}. //internal threats
. xtreg log_trainees coup_suc_lag1 log_trainees_lag1 imf_tax_lag1 rebels_combined_lag1##c.ideal_point_lag1  if NATOAndOthers==0 & year>=1999 & iraqaf==0 & regforce==1, re vce(robust)
{res}
{txt}Random-effects GLS regression                   Number of obs      = {res}     2563
{txt}Group variable: {res}ccode                           {txt}Number of groups   = {res}      148

{txt}R-sq:  within  = {res}0.3045                         {txt}Obs per group: min = {res}        4
{txt}       between = {res}0.9836                                        {txt}avg = {res}     17.3
{txt}       overall = {res}0.6981                                        {txt}max = {res}       19

                                                {txt}Wald chi2({res}6{txt})       = {res}  2369.28
{txt}corr(u_i, X)   = {res}0{txt} (assumed)                    Prob > chi2        =    {res}0.0000

{txt}{ralign 105:(Std. Err. adjusted for {res:148} clusters in ccode)}
{hline 40}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 41}{c |}{col 53}    Robust
{col 1}                           log_trainees{col 41}{c |}      Coef.{col 53}   Std. Err.{col 65}      z{col 73}   P>|z|{col 81}     [95% Con{col 94}f. Interval]
{hline 40}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 26}coup_suc_lag1 {c |}{col 41}{res}{space 2} -.623971{col 53}{space 2} .4399434{col 64}{space 1}   -1.42{col 73}{space 3}0.156{col 81}{space 4}-1.486244{col 94}{space 3} .2383022
{txt}{space 22}log_trainees_lag1 {c |}{col 41}{res}{space 2} .8020175{col 53}{space 2} .0198754{col 64}{space 1}   40.35{col 73}{space 3}0.000{col 81}{space 4} .7630624{col 94}{space 3} .8409725
{txt}{space 27}imf_tax_lag1 {c |}{col 41}{res}{space 2}-.0109494{col 53}{space 2} .0036233{col 64}{space 1}   -3.02{col 73}{space 3}0.003{col 81}{space 4} -.018051{col 94}{space 3}-.0038478
{txt}{space 17}1.rebels_combined_lag1 {c |}{col 41}{res}{space 2} .1402595{col 53}{space 2} .0653768{col 64}{space 1}    2.15{col 73}{space 3}0.032{col 81}{space 4} .0121234{col 94}{space 3} .2683956
{txt}{space 23}ideal_point_lag1 {c |}{col 41}{res}{space 2} .1309811{col 53}{space 2} .0487445{col 64}{space 1}    2.69{col 73}{space 3}0.007{col 81}{space 4} .0354437{col 94}{space 3} .2265186
{txt}{space 39} {c |}
rebels_combined_lag1#c.ideal_point_lag1 {c |}
{space 37}1  {c |}{col 41}{res}{space 2} .1762277{col 53}{space 2} .0869676{col 64}{space 1}    2.03{col 73}{space 3}0.043{col 81}{space 4} .0057744{col 94}{space 3}  .346681
{txt}{space 39} {c |}
{space 34}_cons {c |}{col 41}{res}{space 2} 1.155788{col 53}{space 2} .1408882{col 64}{space 1}    8.20{col 73}{space 3}0.000{col 81}{space 4} .8796523{col 94}{space 3} 1.431924
{txt}{hline 40}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
                                sigma_u {c |} {res}         0
                                {txt}sigma_e {c |} {res} .99294307
                                    {txt}rho {c |} {res}         0{txt}   (fraction of variance due to u_i)
{hline 40}{c BT}{hline 64}

{com}. outreg2 using table2.xls, append ctitle(Trainees) label
{txt}{browse `"table2.xls"'}
{browse `"C:\Users\Theodore McLauchlin\Dropbox\Military training - selection paper\ISQ Submission\Final submission"' :dir}{com} : {txt}{stata `"seeout using "table2.txt", label"':seeout}

{com}. xtreg log_trainexp coup_suc_lag1 log_trainexp_lag1 imf_tax_lag1  rebels_combined_lag1##c.ideal_point_lag1  if NATOAndOthers==0 & year>=1999 & iraqaf==0 & regforce==1, re vce(robust)
{res}
{txt}Random-effects GLS regression                   Number of obs      = {res}     2563
{txt}Group variable: {res}ccode                           {txt}Number of groups   = {res}      148

{txt}R-sq:  within  = {res}0.2400                         {txt}Obs per group: min = {res}        4
{txt}       between = {res}0.9768                                        {txt}avg = {res}     17.3
{txt}       overall = {res}0.6720                                        {txt}max = {res}       19

                                                {txt}Wald chi2({res}6{txt})       = {res}   731.20
{txt}corr(u_i, X)   = {res}0{txt} (assumed)                    Prob > chi2        =    {res}0.0000

{txt}{ralign 105:(Std. Err. adjusted for {res:148} clusters in ccode)}
{hline 40}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 41}{c |}{col 53}    Robust
{col 1}                           log_trainexp{col 41}{c |}      Coef.{col 53}   Std. Err.{col 65}      z{col 73}   P>|z|{col 81}     [95% Con{col 94}f. Interval]
{hline 40}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 26}coup_suc_lag1 {c |}{col 41}{res}{space 2}-2.144202{col 53}{space 2} .9672933{col 64}{space 1}   -2.22{col 73}{space 3}0.027{col 81}{space 4}-4.040062{col 94}{space 3}-.2483418
{txt}{space 22}log_trainexp_lag1 {c |}{col 41}{res}{space 2} .7702216{col 53}{space 2}  .031047{col 64}{space 1}   24.81{col 73}{space 3}0.000{col 81}{space 4} .7093707{col 94}{space 3} .8310726
{txt}{space 27}imf_tax_lag1 {c |}{col 41}{res}{space 2}-.0133251{col 53}{space 2} .0088368{col 64}{space 1}   -1.51{col 73}{space 3}0.132{col 81}{space 4}-.0306449{col 94}{space 3} .0039947
{txt}{space 17}1.rebels_combined_lag1 {c |}{col 41}{res}{space 2}  .078082{col 53}{space 2} .1423519{col 64}{space 1}    0.55{col 73}{space 3}0.583{col 81}{space 4}-.2009226{col 94}{space 3} .3570866
{txt}{space 23}ideal_point_lag1 {c |}{col 41}{res}{space 2} .1983372{col 53}{space 2} .1072263{col 64}{space 1}    1.85{col 73}{space 3}0.064{col 81}{space 4}-.0118225{col 94}{space 3} .4084968
{txt}{space 39} {c |}
rebels_combined_lag1#c.ideal_point_lag1 {c |}
{space 37}1  {c |}{col 41}{res}{space 2} .3643459{col 53}{space 2} .2189862{col 64}{space 1}    1.66{col 73}{space 3}0.096{col 81}{space 4}-.0648591{col 94}{space 3} .7935509
{txt}{space 39} {c |}
{space 34}_cons {c |}{col 41}{res}{space 2} 3.446911{col 53}{space 2} .4615125{col 64}{space 1}    7.47{col 73}{space 3}0.000{col 81}{space 4} 2.542364{col 94}{space 3} 4.351459
{txt}{hline 40}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
                                sigma_u {c |} {res}         0
                                {txt}sigma_e {c |} {res} 1.8308594
                                    {txt}rho {c |} {res}         0{txt}   (fraction of variance due to u_i)
{hline 40}{c BT}{hline 64}

{com}. outreg2 using table2.xls, append ctitle(Expenditures) label
{txt}{browse `"table2.xls"'}
{browse `"C:\Users\Theodore McLauchlin\Dropbox\Military training - selection paper\ISQ Submission\Final submission"' :dir}{com} : {txt}{stata `"seeout using "table2.txt", label"':seeout}

{com}. xtreg log_trainees coup_suc_lag1 log_trainees_lag1 imf_tax_lag1 islamist_combined_lag1##c.ideal_point_lag1 if NATOAndOthers==0 & year>=1999 & iraqaf==0 & regforce==1, re vce(robust)
{res}
{txt}Random-effects GLS regression                   Number of obs      = {res}     2563
{txt}Group variable: {res}ccode                           {txt}Number of groups   = {res}      148

{txt}R-sq:  within  = {res}0.3042                         {txt}Obs per group: min = {res}        4
{txt}       between = {res}0.9857                                        {txt}avg = {res}     17.3
{txt}       overall = {res}0.6978                                        {txt}max = {res}       19

                                                {txt}Wald chi2({res}6{txt})       = {res}  2691.29
{txt}corr(u_i, X)   = {res}0{txt} (assumed)                    Prob > chi2        =    {res}0.0000

{txt}{ralign 107:(Std. Err. adjusted for {res:148} clusters in ccode)}
{hline 42}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 43}{c |}{col 55}    Robust
{col 1}                             log_trainees{col 43}{c |}      Coef.{col 55}   Std. Err.{col 67}      z{col 75}   P>|z|{col 83}     [95% Con{col 96}f. Interval]
{hline 42}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 28}coup_suc_lag1 {c |}{col 43}{res}{space 2}-.6036429{col 55}{space 2} .4459635{col 66}{space 1}   -1.35{col 75}{space 3}0.176{col 83}{space 4}-1.477715{col 96}{space 3} .2704294
{txt}{space 24}log_trainees_lag1 {c |}{col 43}{res}{space 2} .8029139{col 55}{space 2} .0207803{col 66}{space 1}   38.64{col 75}{space 3}0.000{col 83}{space 4} .7621852{col 96}{space 3} .8436426
{txt}{space 29}imf_tax_lag1 {c |}{col 43}{res}{space 2}-.0114457{col 55}{space 2} .0034533{col 66}{space 1}   -3.31{col 75}{space 3}0.001{col 83}{space 4} -.018214{col 96}{space 3}-.0046773
{txt}{space 17}1.islamist_combined_lag1 {c |}{col 43}{res}{space 2} .1433567{col 55}{space 2} .0664127{col 66}{space 1}    2.16{col 75}{space 3}0.031{col 83}{space 4} .0131902{col 96}{space 3} .2735232
{txt}{space 25}ideal_point_lag1 {c |}{col 43}{res}{space 2} .1984579{col 55}{space 2} .0511308{col 66}{space 1}    3.88{col 75}{space 3}0.000{col 83}{space 4} .0982434{col 96}{space 3} .2986723
{txt}{space 41} {c |}
islamist_combined_lag1#c.ideal_point_lag1 {c |}
{space 39}1  {c |}{col 43}{res}{space 2} .0267017{col 55}{space 2} .0840699{col 66}{space 1}    0.32{col 75}{space 3}0.751{col 83}{space 4}-.1380724{col 96}{space 3} .1914757
{txt}{space 41} {c |}
{space 36}_cons {c |}{col 43}{res}{space 2} 1.181517{col 55}{space 2} .1425285{col 66}{space 1}    8.29{col 75}{space 3}0.000{col 83}{space 4} .9021662{col 96}{space 3} 1.460868
{txt}{hline 42}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
                                  sigma_u {c |} {res}         0
                                  {txt}sigma_e {c |} {res}  .9934305
                                      {txt}rho {c |} {res}         0{txt}   (fraction of variance due to u_i)
{hline 42}{c BT}{hline 64}

{com}. outreg2 using table2.xls, append ctitle(Trainees) label
{txt}{browse `"table2.xls"'}
{browse `"C:\Users\Theodore McLauchlin\Dropbox\Military training - selection paper\ISQ Submission\Final submission"' :dir}{com} : {txt}{stata `"seeout using "table2.txt", label"':seeout}

{com}. xtreg log_trainexp coup_suc_lag1 log_trainexp_lag1 imf_tax_lag1  islamist_combined_lag1##c.ideal_point_lag1  if NATOAndOthers==0 & year>=1999 & iraqaf==0 & regforce==1, re vce(robust)
{res}
{txt}Random-effects GLS regression                   Number of obs      = {res}     2563
{txt}Group variable: {res}ccode                           {txt}Number of groups   = {res}      148

{txt}R-sq:  within  = {res}0.2395                         {txt}Obs per group: min = {res}        4
{txt}       between = {res}0.9790                                        {txt}avg = {res}     17.3
{txt}       overall = {res}0.6711                                        {txt}max = {res}       19

                                                {txt}Wald chi2({res}6{txt})       = {res}   717.01
{txt}corr(u_i, X)   = {res}0{txt} (assumed)                    Prob > chi2        =    {res}0.0000

{txt}{ralign 107:(Std. Err. adjusted for {res:148} clusters in ccode)}
{hline 42}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 43}{c |}{col 55}    Robust
{col 1}                             log_trainexp{col 43}{c |}      Coef.{col 55}   Std. Err.{col 67}      z{col 75}   P>|z|{col 83}     [95% Con{col 96}f. Interval]
{hline 42}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 28}coup_suc_lag1 {c |}{col 43}{res}{space 2}-2.107588{col 55}{space 2} .9793772{col 66}{space 1}   -2.15{col 75}{space 3}0.031{col 83}{space 4}-4.027132{col 96}{space 3}-.1880442
{txt}{space 24}log_trainexp_lag1 {c |}{col 43}{res}{space 2} .7744577{col 55}{space 2} .0316252{col 66}{space 1}   24.49{col 75}{space 3}0.000{col 83}{space 4} .7124734{col 96}{space 3} .8364419
{txt}{space 29}imf_tax_lag1 {c |}{col 43}{res}{space 2}-.0136235{col 55}{space 2}   .00836{col 66}{space 1}   -1.63{col 75}{space 3}0.103{col 83}{space 4}-.0300087{col 96}{space 3} .0027618
{txt}{space 17}1.islamist_combined_lag1 {c |}{col 43}{res}{space 2} .0830214{col 55}{space 2} .1430515{col 66}{space 1}    0.58{col 75}{space 3}0.562{col 83}{space 4}-.1973544{col 96}{space 3} .3633972
{txt}{space 25}ideal_point_lag1 {c |}{col 43}{res}{space 2} .3727305{col 55}{space 2} .1111008{col 66}{space 1}    3.35{col 75}{space 3}0.001{col 83}{space 4}  .154977{col 96}{space 3} .5904841
{txt}{space 41} {c |}
islamist_combined_lag1#c.ideal_point_lag1 {c |}
{space 39}1  {c |}{col 43}{res}{space 2}-.0381122{col 55}{space 2} .2036978{col 66}{space 1}   -0.19{col 75}{space 3}0.852{col 83}{space 4}-.4373526{col 96}{space 3} .3611282
{txt}{space 41} {c |}
{space 36}_cons {c |}{col 43}{res}{space 2}   3.3964{col 55}{space 2} .4736604{col 66}{space 1}    7.17{col 75}{space 3}0.000{col 83}{space 4} 2.468042{col 96}{space 3} 4.324757
{txt}{hline 42}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
                                  sigma_u {c |} {res}         0
                                  {txt}sigma_e {c |} {res} 1.8315028
                                      {txt}rho {c |} {res}         0{txt}   (fraction of variance due to u_i)
{hline 42}{c BT}{hline 64}

{com}. outreg2 using table2.xls, append ctitle(Expenditures) label
{txt}{browse `"table2.xls"'}
{browse `"C:\Users\Theodore McLauchlin\Dropbox\Military training - selection paper\ISQ Submission\Final submission"' :dir}{com} : {txt}{stata `"seeout using "table2.txt", label"':seeout}

{com}. //norm transmission
. xtreg log_trainees coup_suc_lag1 log_trainees_lag1  demtrans_last5_ert v2x_regime_lag1 if NATOAndOthers==0 & year>=1999 & iraqaf==0 & regforce==1, re vce(robust)
{res}
{txt}Random-effects GLS regression                   Number of obs      = {res}     2635
{txt}Group variable: {res}ccode                           {txt}Number of groups   = {res}      147

{txt}R-sq:  within  = {res}0.3250                         {txt}Obs per group: min = {res}        4
{txt}       between = {res}0.9891                                        {txt}avg = {res}     17.9
{txt}       overall = {res}0.7211                                        {txt}max = {res}       19

                                                {txt}Wald chi2({res}4{txt})       = {res}  2201.27
{txt}corr(u_i, X)   = {res}0{txt} (assumed)                    Prob > chi2        =    {res}0.0000

{txt}{ralign 84:(Std. Err. adjusted for {res:147} clusters in ccode)}
{hline 19}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 20}{c |}{col 32}    Robust
{col 1}      log_trainees{col 20}{c |}      Coef.{col 32}   Std. Err.{col 44}      z{col 52}   P>|z|{col 60}     [95% Con{col 73}f. Interval]
{hline 19}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 5}coup_suc_lag1 {c |}{col 20}{res}{space 2}-.5562408{col 32}{space 2} .4399263{col 43}{space 1}   -1.26{col 52}{space 3}0.206{col 60}{space 4} -1.41848{col 73}{space 3} .3059988
{txt}{space 1}log_trainees_lag1 {c |}{col 20}{res}{space 2} .8213509{col 32}{space 2} .0184942{col 43}{space 1}   44.41{col 52}{space 3}0.000{col 60}{space 4} .7851029{col 73}{space 3} .8575989
{txt}demtrans_last5_ert {c |}{col 20}{res}{space 2} .1664786{col 32}{space 2} .0484414{col 43}{space 1}    3.44{col 52}{space 3}0.001{col 60}{space 4} .0715351{col 73}{space 3}  .261422
{txt}{space 3}v2x_regime_lag1 {c |}{col 20}{res}{space 2}  .072383{col 32}{space 2} .0298563{col 43}{space 1}    2.42{col 52}{space 3}0.015{col 60}{space 4} .0138656{col 73}{space 3} .1309003
{txt}{space 13}_cons {c |}{col 20}{res}{space 2} .7149184{col 32}{space 2} .1045751{col 43}{space 1}    6.84{col 52}{space 3}0.000{col 60}{space 4} .5099549{col 73}{space 3} .9198818
{txt}{hline 19}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
           sigma_u {c |} {res}         0
           {txt}sigma_e {c |} {res}  1.015446
               {txt}rho {c |} {res}         0{txt}   (fraction of variance due to u_i)
{hline 19}{c BT}{hline 64}

{com}. outreg2 using table2.xls, append ctitle(Trainees) label
{txt}{browse `"table2.xls"'}
{browse `"C:\Users\Theodore McLauchlin\Dropbox\Military training - selection paper\ISQ Submission\Final submission"' :dir}{com} : {txt}{stata `"seeout using "table2.txt", label"':seeout}

{com}. xtreg log_trainexp coup_suc_lag1 log_trainexp_lag1 demtrans_last5_ert v2x_regime_lag1  if NATOAndOthers==0 & year>=1999 & iraqaf==0 & regforce==1, re vce(robust)
{res}
{txt}Random-effects GLS regression                   Number of obs      = {res}     2635
{txt}Group variable: {res}ccode                           {txt}Number of groups   = {res}      147

{txt}R-sq:  within  = {res}0.2791                         {txt}Obs per group: min = {res}        4
{txt}       between = {res}0.9852                                        {txt}avg = {res}     17.9
{txt}       overall = {res}0.7151                                        {txt}max = {res}       19

                                                {txt}Wald chi2({res}4{txt})       = {res}   842.89
{txt}corr(u_i, X)   = {res}0{txt} (assumed)                    Prob > chi2        =    {res}0.0000

{txt}{ralign 84:(Std. Err. adjusted for {res:147} clusters in ccode)}
{hline 19}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 20}{c |}{col 32}    Robust
{col 1}      log_trainexp{col 20}{c |}      Coef.{col 32}   Std. Err.{col 44}      z{col 52}   P>|z|{col 60}     [95% Con{col 73}f. Interval]
{hline 19}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 5}coup_suc_lag1 {c |}{col 20}{res}{space 2}-1.671949{col 32}{space 2} 1.089711{col 43}{space 1}   -1.53{col 52}{space 3}0.125{col 60}{space 4}-3.807743{col 73}{space 3} .4638452
{txt}{space 1}log_trainexp_lag1 {c |}{col 20}{res}{space 2} .8020121{col 32}{space 2} .0283172{col 43}{space 1}   28.32{col 52}{space 3}0.000{col 60}{space 4} .7465115{col 73}{space 3} .8575127
{txt}demtrans_last5_ert {c |}{col 20}{res}{space 2} .3446074{col 32}{space 2} .1137153{col 43}{space 1}    3.03{col 52}{space 3}0.002{col 60}{space 4} .1217295{col 73}{space 3} .5674853
{txt}{space 3}v2x_regime_lag1 {c |}{col 20}{res}{space 2} .1655739{col 32}{space 2} .0654642{col 43}{space 1}    2.53{col 52}{space 3}0.011{col 60}{space 4} .0372664{col 73}{space 3} .2938814
{txt}{space 13}_cons {c |}{col 20}{res}{space 2} 2.333293{col 32}{space 2}   .42032{col 43}{space 1}    5.55{col 52}{space 3}0.000{col 60}{space 4}  1.50948{col 73}{space 3} 3.157105
{txt}{hline 19}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
           sigma_u {c |} {res}         0
           {txt}sigma_e {c |} {res}  1.959113
               {txt}rho {c |} {res}         0{txt}   (fraction of variance due to u_i)
{hline 19}{c BT}{hline 64}

{com}. outreg2 using table2.xls, append ctitle(Expenditures) label
{txt}{browse `"table2.xls"'}
{browse `"C:\Users\Theodore McLauchlin\Dropbox\Military training - selection paper\ISQ Submission\Final submission"' :dir}{com} : {txt}{stata `"seeout using "table2.txt", label"':seeout}

{com}. //full model
. xtreg log_trainees coup_suc_lag1 log_trainees_lag1  threat_lag1 c.mingtidist_lag1##c.ideal_point_lag1 imf_tax_lag1  rebels_combined_lag1##c.ideal_point_lag1 demtrans_last5_ert v2x_regime_lag1 log_wb_pop_lag1 if NATOAndOthers==0 & year>=1999 & iraqaf==0 & regforce==1, re vce(robust)
{txt}note: ideal_point_lag1 omitted because of collinearity
{res}
{txt}Random-effects GLS regression                   Number of obs      = {res}     2450
{txt}Group variable: {res}ccode                           {txt}Number of groups   = {res}      142

{txt}R-sq:  within  = {res}0.3149                         {txt}Obs per group: min = {res}        4
{txt}       between = {res}0.9725                                        {txt}avg = {res}     17.3
{txt}       overall = {res}0.7067                                        {txt}max = {res}       19

                                                {txt}Wald chi2({res}12{txt})      = {res}  6229.41
{txt}corr(u_i, X)   = {res}0{txt} (assumed)                    Prob > chi2        =    {res}0.0000

{txt}{ralign 105:(Std. Err. adjusted for {res:142} clusters in ccode)}
{hline 40}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 41}{c |}{col 53}    Robust
{col 1}                           log_trainees{col 41}{c |}      Coef.{col 53}   Std. Err.{col 65}      z{col 73}   P>|z|{col 81}     [95% Con{col 94}f. Interval]
{hline 40}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 26}coup_suc_lag1 {c |}{col 41}{res}{space 2}-.6820853{col 53}{space 2} .4214774{col 64}{space 1}   -1.62{col 73}{space 3}0.106{col 81}{space 4}-1.508166{col 94}{space 3} .1439952
{txt}{space 22}log_trainees_lag1 {c |}{col 41}{res}{space 2} .7648232{col 53}{space 2} .0233951{col 64}{space 1}   32.69{col 73}{space 3}0.000{col 81}{space 4} .7189696{col 94}{space 3} .8106769
{txt}{space 28}threat_lag1 {c |}{col 41}{res}{space 2}-.8780287{col 53}{space 2} .1309829{col 64}{space 1}   -6.70{col 73}{space 3}0.000{col 81}{space 4} -1.13475{col 94}{space 3} -.621307
{txt}{space 24}mingtidist_lag1 {c |}{col 41}{res}{space 2}  .040509{col 53}{space 2} .0202014{col 64}{space 1}    2.01{col 73}{space 3}0.045{col 81}{space 4}  .000915{col 94}{space 3}  .080103
{txt}{space 23}ideal_point_lag1 {c |}{col 41}{res}{space 2} .0161918{col 53}{space 2}   .07372{col 64}{space 1}    0.22{col 73}{space 3}0.826{col 81}{space 4}-.1282968{col 94}{space 3} .1606804
{txt}{space 39} {c |}
{space 3}c.mingtidist_lag1#c.ideal_point_lag1 {c |}{col 41}{res}{space 2} .0684317{col 53}{space 2} .0226095{col 64}{space 1}    3.03{col 73}{space 3}0.002{col 81}{space 4} .0241179{col 94}{space 3} .1127455
{txt}{space 39} {c |}
{space 27}imf_tax_lag1 {c |}{col 41}{res}{space 2}-.0094288{col 53}{space 2} .0038347{col 64}{space 1}   -2.46{col 73}{space 3}0.014{col 81}{space 4}-.0169447{col 94}{space 3}-.0019129
{txt}{space 17}1.rebels_combined_lag1 {c |}{col 41}{res}{space 2} .0224201{col 53}{space 2} .0665643{col 64}{space 1}    0.34{col 73}{space 3}0.736{col 81}{space 4}-.1080434{col 94}{space 3} .1528837
{txt}{space 23}ideal_point_lag1 {c |}{col 41}{res}{space 2}        0{col 53}{txt}  (omitted)
{space 39} {c |}
rebels_combined_lag1#c.ideal_point_lag1 {c |}
{space 37}1  {c |}{col 41}{res}{space 2} .2177834{col 53}{space 2} .0841294{col 64}{space 1}    2.59{col 73}{space 3}0.010{col 81}{space 4} .0528927{col 94}{space 3}  .382674
{txt}{space 39} {c |}
{space 21}demtrans_last5_ert {c |}{col 41}{res}{space 2} .1244487{col 53}{space 2} .0535475{col 64}{space 1}    2.32{col 73}{space 3}0.020{col 81}{space 4} .0194974{col 94}{space 3} .2293999
{txt}{space 24}v2x_regime_lag1 {c |}{col 41}{res}{space 2} .0183132{col 53}{space 2} .0357109{col 64}{space 1}    0.51{col 73}{space 3}0.608{col 81}{space 4}-.0516789{col 94}{space 3} .0883053
{txt}{space 24}log_wb_pop_lag1 {c |}{col 41}{res}{space 2} .1028111{col 53}{space 2}  .015984{col 64}{space 1}    6.43{col 73}{space 3}0.000{col 81}{space 4} .0714831{col 94}{space 3} .1341392
{txt}{space 34}_cons {c |}{col 41}{res}{space 2}-.3695711{col 53}{space 2} .2536098{col 64}{space 1}   -1.46{col 73}{space 3}0.145{col 81}{space 4}-.8666371{col 94}{space 3}  .127495
{txt}{hline 40}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
                                sigma_u {c |} {res}         0
                                {txt}sigma_e {c |} {res} .99564906
                                    {txt}rho {c |} {res}         0{txt}   (fraction of variance due to u_i)
{hline 40}{c BT}{hline 64}

{com}. gen mainsample = e(sample)
{txt}
{com}. label var mainsample "Is in main sample, Model 9, Table 2"
{txt}
{com}. estimates store mod9
{txt}
{com}. outreg2 using table2.xls, append ctitle(Trainees) label
{txt}{browse `"table2.xls"'}
{browse `"C:\Users\Theodore McLauchlin\Dropbox\Military training - selection paper\ISQ Submission\Final submission"' :dir}{com} : {txt}{stata `"seeout using "table2.txt", label"':seeout}

{com}. xtreg log_trainexp coup_suc_lag1 log_trainexp_lag1 threat_lag1 c.mingtidist_lag1##c.ideal_point_lag1 imf_tax_lag1  rebels_combined_lag1##c.ideal_point_lag1 demtrans_last5_ert v2x_regime_lag1 log_wb_pop_lag1  if NATOAndOthers==0 & year>=1999 & iraqaf==0 & regforce==1, re vce(robust)
{txt}note: ideal_point_lag1 omitted because of collinearity
{res}
{txt}Random-effects GLS regression                   Number of obs      = {res}     2450
{txt}Group variable: {res}ccode                           {txt}Number of groups   = {res}      142

{txt}R-sq:  within  = {res}0.2477                         {txt}Obs per group: min = {res}        4
{txt}       between = {res}0.9661                                        {txt}avg = {res}     17.3
{txt}       overall = {res}0.6837                                        {txt}max = {res}       19

                                                {txt}Wald chi2({res}12{txt})      = {res}  1709.32
{txt}corr(u_i, X)   = {res}0{txt} (assumed)                    Prob > chi2        =    {res}0.0000

{txt}{ralign 105:(Std. Err. adjusted for {res:142} clusters in ccode)}
{hline 40}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 41}{c |}{col 53}    Robust
{col 1}                           log_trainexp{col 41}{c |}      Coef.{col 53}   Std. Err.{col 65}      z{col 73}   P>|z|{col 81}     [95% Con{col 94}f. Interval]
{hline 40}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 26}coup_suc_lag1 {c |}{col 41}{res}{space 2}-2.244951{col 53}{space 2} .9446321{col 64}{space 1}   -2.38{col 73}{space 3}0.017{col 81}{space 4}-4.096396{col 94}{space 3}-.3935059
{txt}{space 22}log_trainexp_lag1 {c |}{col 41}{res}{space 2} .7406352{col 53}{space 2} .0359216{col 64}{space 1}   20.62{col 73}{space 3}0.000{col 81}{space 4} .6702302{col 94}{space 3} .8110401
{txt}{space 28}threat_lag1 {c |}{col 41}{res}{space 2}-2.155902{col 53}{space 2} .5029863{col 64}{space 1}   -4.29{col 73}{space 3}0.000{col 81}{space 4}-3.141737{col 94}{space 3}-1.170067
{txt}{space 24}mingtidist_lag1 {c |}{col 41}{res}{space 2} .0834906{col 53}{space 2} .0412604{col 64}{space 1}    2.02{col 73}{space 3}0.043{col 81}{space 4} .0026216{col 94}{space 3} .1643596
{txt}{space 23}ideal_point_lag1 {c |}{col 41}{res}{space 2} .0051013{col 53}{space 2} .1699257{col 64}{space 1}    0.03{col 73}{space 3}0.976{col 81}{space 4}-.3279471{col 94}{space 3} .3381496
{txt}{space 39} {c |}
{space 3}c.mingtidist_lag1#c.ideal_point_lag1 {c |}{col 41}{res}{space 2} .1404047{col 53}{space 2} .0559099{col 64}{space 1}    2.51{col 73}{space 3}0.012{col 81}{space 4} .0308232{col 94}{space 3} .2499861
{txt}{space 39} {c |}
{space 27}imf_tax_lag1 {c |}{col 41}{res}{space 2}-.0088481{col 53}{space 2}   .00908{col 64}{space 1}   -0.97{col 73}{space 3}0.330{col 81}{space 4}-.0266445{col 94}{space 3} .0089483
{txt}{space 17}1.rebels_combined_lag1 {c |}{col 41}{res}{space 2}-.0932382{col 53}{space 2} .1297791{col 64}{space 1}   -0.72{col 73}{space 3}0.472{col 81}{space 4}-.3476005{col 94}{space 3} .1611241
{txt}{space 23}ideal_point_lag1 {c |}{col 41}{res}{space 2}        0{col 53}{txt}  (omitted)
{space 39} {c |}
rebels_combined_lag1#c.ideal_point_lag1 {c |}
{space 37}1  {c |}{col 41}{res}{space 2} .3558626{col 53}{space 2} .1996908{col 64}{space 1}    1.78{col 73}{space 3}0.075{col 81}{space 4}-.0355242{col 94}{space 3} .7472494
{txt}{space 39} {c |}
{space 21}demtrans_last5_ert {c |}{col 41}{res}{space 2} .2394005{col 53}{space 2} .1196794{col 64}{space 1}    2.00{col 73}{space 3}0.045{col 81}{space 4} .0048331{col 94}{space 3} .4739679
{txt}{space 24}v2x_regime_lag1 {c |}{col 41}{res}{space 2}-.0233583{col 53}{space 2} .0794006{col 64}{space 1}   -0.29{col 73}{space 3}0.769{col 81}{space 4}-.1789805{col 94}{space 3} .1322639
{txt}{space 24}log_wb_pop_lag1 {c |}{col 41}{res}{space 2} .1383629{col 53}{space 2} .0393995{col 64}{space 1}    3.51{col 73}{space 3}0.000{col 81}{space 4} .0611412{col 94}{space 3} .2155846
{txt}{space 34}_cons {c |}{col 41}{res}{space 2} 1.528842{col 53}{space 2} .6769441{col 64}{space 1}    2.26{col 73}{space 3}0.024{col 81}{space 4} .2020562{col 94}{space 3} 2.855628
{txt}{hline 40}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
                                sigma_u {c |} {res}         0
                                {txt}sigma_e {c |} {res} 1.8498901
                                    {txt}rho {c |} {res}         0{txt}   (fraction of variance due to u_i)
{hline 40}{c BT}{hline 64}

{com}. estimates store mod10
{txt}
{com}. outreg2 using table2.xls, append ctitle(Expenditures) label
{txt}{browse `"table2.xls"'}
{browse `"C:\Users\Theodore McLauchlin\Dropbox\Military training - selection paper\ISQ Submission\Final submission"' :dir}{com} : {txt}{stata `"seeout using "table2.txt", label"':seeout}

{com}. 
. 
. //text claim (Results section, after Table 2) about correlation between democracy and ideal point
. corr v2x_regime_lag1 threat_lag1 mingtidist_lag1 ideal_point_lag1 imf_tax_lag1 rebels_combined_lag1 log_wb_pop_lag1
{txt}(obs=3227)

             {c |} v2x_re~1 threat~1 mingti~1 ideal_~1 imf_ta~1 rebels~1 log_wb~1
{hline 13}{c +}{hline 63}
v2x_regime~1 {c |}{res}   1.0000
 {txt}threat_lag1 {c |}{res}  -0.1301   1.0000
{txt}mingtidist~1 {c |}{res}  -0.1083   0.0816   1.0000
{txt}ideal_poin~1 {c |}{res}   0.6717  -0.1436   0.0338   1.0000
{txt}imf_tax_lag1 {c |}{res}   0.4970  -0.0574  -0.0293   0.5154   1.0000
{txt}rebels_com~1 {c |}{res}  -0.3403   0.1365   0.1502  -0.2573  -0.2328   1.0000
{txt}log_wb_pop~1 {c |}{res}  -0.0326   0.2227   0.1157  -0.0178  -0.1254   0.4056   1.0000

{txt}
{com}. 
. 
. //FIGURE 2. How the interaction of diplomatic alignment and threats relates to training
. centile mingtidist_lag1, centile(5 10 50 90 95)

{txt}{col 56}{hline 2} Binom. Interp. {hline 2}
    Variable {c |}     Obs  Percentile      Centile        [95% Conf. Interval]
{hline 13}{c +}{hline 61}
mingtidist~1 {c |}{col 14}{res}    3860{col 27}      5{col 39} .4029809{col 55} .3967297{col 67} .4104261{txt}
             {c |}{res}{col 27}     10{col 39} .4472953{col 55} .4322607{col 67} .4612281{txt}
             {c |}{res}{col 27}     50{col 39} .8061028{col 55} .7886624{col 67} .8284512{txt}
             {c |}{res}{col 27}     90{col 39} 2.073427{col 55} 1.822733{col 67} 2.213079{txt}
             {c |}{res}{col 27}     95{col 39} 3.139806{col 55} 2.966082{col 67} 3.349808{txt}

{com}. centile ideal_point_lag1, centile(5 10 50 90 95)

{txt}{col 56}{hline 2} Binom. Interp. {hline 2}
    Variable {c |}     Obs  Percentile      Centile        [95% Conf. Interval]
{hline 13}{c +}{hline 61}
ideal_poin~1 {c |}{col 14}{res}    3957{col 27}      5{col 39}-1.278091{col 55}-1.308787{col 67}-1.235491{txt}
             {c |}{res}{col 27}     10{col 39}-1.023582{col 55}-1.070896{col 67}-.9925228{txt}
             {c |}{res}{col 27}     50{col 39}-.3660458{col 55}-.3952468{col 67}-.3334588{txt}
             {c |}{res}{col 27}     90{col 39} 1.103012{col 55} 1.070888{col 67} 1.127984{txt}
             {c |}{res}{col 27}     95{col 39} 1.288794{col 55} 1.239111{col 67} 1.351131{txt}

{com}. //FIGURE 2a. Interacting diplomatic alignment and external threat environment
. estimates restore mod9
{txt}(results {stata estimates replay mod9:mod9} are active now)

{com}. margins, at(mingtidist_lag1 = (0.5 0.75 1 1.25 1.5 1.75 2 2.25 2.5 2.75 3) ideal_point_lag1 = -1) post
{res}
{txt}Predictive margins{col 51}Number of obs{col 67}= {res}      2450
{txt}Model VCE{col 14}: {res}Robust

{txt}{p2colset 1 14 16 2}{...}
{p2col:Expression}:{space 1}{res:Linear prediction, predict()}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:1._at}:{space 1}{res:{txt:mingtidist~1}{space 4}{txt:=} {space 9}.5}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col: }{space 2}{res:{txt:ideal_poin~1}{space 4}{txt:=} {space 9}-1}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:2._at}:{space 1}{res:{txt:mingtidist~1}{space 4}{txt:=} {space 8}.75}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col: }{space 2}{res:{txt:ideal_poin~1}{space 4}{txt:=} {space 9}-1}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:3._at}:{space 1}{res:{txt:mingtidist~1}{space 4}{txt:=} {space 10}1}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col: }{space 2}{res:{txt:ideal_poin~1}{space 4}{txt:=} {space 9}-1}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:4._at}:{space 1}{res:{txt:mingtidist~1}{space 4}{txt:=} {space 7}1.25}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col: }{space 2}{res:{txt:ideal_poin~1}{space 4}{txt:=} {space 9}-1}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:5._at}:{space 1}{res:{txt:mingtidist~1}{space 4}{txt:=} {space 8}1.5}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col: }{space 2}{res:{txt:ideal_poin~1}{space 4}{txt:=} {space 9}-1}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:6._at}:{space 1}{res:{txt:mingtidist~1}{space 4}{txt:=} {space 7}1.75}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col: }{space 2}{res:{txt:ideal_poin~1}{space 4}{txt:=} {space 9}-1}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:7._at}:{space 1}{res:{txt:mingtidist~1}{space 4}{txt:=} {space 10}2}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col: }{space 2}{res:{txt:ideal_poin~1}{space 4}{txt:=} {space 9}-1}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:8._at}:{space 1}{res:{txt:mingtidist~1}{space 4}{txt:=} {space 7}2.25}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col: }{space 2}{res:{txt:ideal_poin~1}{space 4}{txt:=} {space 9}-1}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:9._at}:{space 1}{res:{txt:mingtidist~1}{space 4}{txt:=} {space 8}2.5}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col: }{space 2}{res:{txt:ideal_poin~1}{space 4}{txt:=} {space 9}-1}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:10._at}:{space 1}{res:{txt:mingtidist~1}{space 4}{txt:=} {space 7}2.75}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col: }{space 2}{res:{txt:ideal_poin~1}{space 4}{txt:=} {space 9}-1}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:11._at}:{space 1}{res:{txt:mingtidist~1}{space 4}{txt:=} {space 10}3}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col: }{space 2}{res:{txt:ideal_poin~1}{space 4}{txt:=} {space 9}-1}{p_end}
{p2colreset}{...}

{res}{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26} Delta-method
{col 14}{c |}     Margin{col 26}   Std. Err.{col 38}      z{col 46}   P>|z|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 9}_at {c |}
{space 10}1  {c |}{col 14}{res}{space 2} 4.544739{col 26}{space 2} .0469609{col 37}{space 1}   96.78{col 46}{space 3}0.000{col 54}{space 4} 4.452697{col 67}{space 3}  4.63678
{txt}{space 10}2  {c |}{col 14}{res}{space 2} 4.537758{col 26}{space 2}  .044242{col 37}{space 1}  102.57{col 46}{space 3}0.000{col 54}{space 4} 4.451045{col 67}{space 3} 4.624471
{txt}{space 10}3  {c |}{col 14}{res}{space 2} 4.530778{col 26}{space 2} .0424223{col 37}{space 1}  106.80{col 46}{space 3}0.000{col 54}{space 4} 4.447631{col 67}{space 3} 4.613924
{txt}{space 10}4  {c |}{col 14}{res}{space 2} 4.523797{col 26}{space 2} .0416198{col 37}{space 1}  108.69{col 46}{space 3}0.000{col 54}{space 4} 4.442223{col 67}{space 3}  4.60537
{txt}{space 10}5  {c |}{col 14}{res}{space 2} 4.516816{col 26}{space 2} .0418931{col 37}{space 1}  107.82{col 46}{space 3}0.000{col 54}{space 4} 4.434707{col 67}{space 3} 4.598925
{txt}{space 10}6  {c |}{col 14}{res}{space 2} 4.509835{col 26}{space 2} .0432218{col 37}{space 1}  104.34{col 46}{space 3}0.000{col 54}{space 4} 4.425122{col 67}{space 3} 4.594549
{txt}{space 10}7  {c |}{col 14}{res}{space 2} 4.502855{col 26}{space 2} .0455134{col 37}{space 1}   98.93{col 46}{space 3}0.000{col 54}{space 4}  4.41365{col 67}{space 3} 4.592059
{txt}{space 10}8  {c |}{col 14}{res}{space 2} 4.495874{col 26}{space 2} .0486322{col 37}{space 1}   92.45{col 46}{space 3}0.000{col 54}{space 4} 4.400557{col 67}{space 3} 4.591191
{txt}{space 10}9  {c |}{col 14}{res}{space 2} 4.488893{col 26}{space 2} .0524306{col 37}{space 1}   85.62{col 46}{space 3}0.000{col 54}{space 4} 4.386131{col 67}{space 3} 4.591655
{txt}{space 9}10  {c |}{col 14}{res}{space 2} 4.481913{col 26}{space 2} .0567724{col 37}{space 1}   78.95{col 46}{space 3}0.000{col 54}{space 4} 4.370641{col 67}{space 3} 4.593185
{txt}{space 9}11  {c |}{col 14}{res}{space 2} 4.474932{col 26}{space 2} .0615428{col 37}{space 1}   72.71{col 46}{space 3}0.000{col 54}{space 4}  4.35431{col 67}{space 3} 4.595554
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. estimates store align_n1
{txt}
{com}. estimates restore mod9
{txt}(results {stata estimates replay mod9:mod9} are active now)

{com}. margins, at(mingtidist_lag1 = (0.5 0.75 1 1.25 1.5 1.75 2 2.25 2.5 2.75 3) ideal_point_lag1 = 0) post
{res}
{txt}Predictive margins{col 51}Number of obs{col 67}= {res}      2450
{txt}Model VCE{col 14}: {res}Robust

{txt}{p2colset 1 14 16 2}{...}
{p2col:Expression}:{space 1}{res:Linear prediction, predict()}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:1._at}:{space 1}{res:{txt:mingtidist~1}{space 4}{txt:=} {space 9}.5}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col: }{space 2}{res:{txt:ideal_poin~1}{space 4}{txt:=} {space 10}0}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:2._at}:{space 1}{res:{txt:mingtidist~1}{space 4}{txt:=} {space 8}.75}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col: }{space 2}{res:{txt:ideal_poin~1}{space 4}{txt:=} {space 10}0}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:3._at}:{space 1}{res:{txt:mingtidist~1}{space 4}{txt:=} {space 10}1}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col: }{space 2}{res:{txt:ideal_poin~1}{space 4}{txt:=} {space 10}0}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:4._at}:{space 1}{res:{txt:mingtidist~1}{space 4}{txt:=} {space 7}1.25}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col: }{space 2}{res:{txt:ideal_poin~1}{space 4}{txt:=} {space 10}0}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:5._at}:{space 1}{res:{txt:mingtidist~1}{space 4}{txt:=} {space 8}1.5}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col: }{space 2}{res:{txt:ideal_poin~1}{space 4}{txt:=} {space 10}0}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:6._at}:{space 1}{res:{txt:mingtidist~1}{space 4}{txt:=} {space 7}1.75}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col: }{space 2}{res:{txt:ideal_poin~1}{space 4}{txt:=} {space 10}0}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:7._at}:{space 1}{res:{txt:mingtidist~1}{space 4}{txt:=} {space 10}2}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col: }{space 2}{res:{txt:ideal_poin~1}{space 4}{txt:=} {space 10}0}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:8._at}:{space 1}{res:{txt:mingtidist~1}{space 4}{txt:=} {space 7}2.25}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col: }{space 2}{res:{txt:ideal_poin~1}{space 4}{txt:=} {space 10}0}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:9._at}:{space 1}{res:{txt:mingtidist~1}{space 4}{txt:=} {space 8}2.5}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col: }{space 2}{res:{txt:ideal_poin~1}{space 4}{txt:=} {space 10}0}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:10._at}:{space 1}{res:{txt:mingtidist~1}{space 4}{txt:=} {space 7}2.75}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col: }{space 2}{res:{txt:ideal_poin~1}{space 4}{txt:=} {space 10}0}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:11._at}:{space 1}{res:{txt:mingtidist~1}{space 4}{txt:=} {space 10}3}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col: }{space 2}{res:{txt:ideal_poin~1}{space 4}{txt:=} {space 10}0}{p_end}
{p2colreset}{...}

{res}{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26} Delta-method
{col 14}{c |}     Margin{col 26}   Std. Err.{col 38}      z{col 46}   P>|z|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 9}_at {c |}
{space 10}1  {c |}{col 14}{res}{space 2} 4.696127{col 26}{space 2} .0404252{col 37}{space 1}  116.17{col 46}{space 3}0.000{col 54}{space 4} 4.616895{col 67}{space 3} 4.775359
{txt}{space 10}2  {c |}{col 14}{res}{space 2} 4.706254{col 26}{space 2} .0377143{col 37}{space 1}  124.79{col 46}{space 3}0.000{col 54}{space 4} 4.632335{col 67}{space 3} 4.780173
{txt}{space 10}3  {c |}{col 14}{res}{space 2} 4.716381{col 26}{space 2} .0355183{col 37}{space 1}  132.79{col 46}{space 3}0.000{col 54}{space 4} 4.646767{col 67}{space 3} 4.785996
{txt}{space 10}4  {c |}{col 14}{res}{space 2} 4.726509{col 26}{space 2} .0339374{col 37}{space 1}  139.27{col 46}{space 3}0.000{col 54}{space 4} 4.659992{col 67}{space 3} 4.793025
{txt}{space 10}5  {c |}{col 14}{res}{space 2} 4.736636{col 26}{space 2} .0330599{col 37}{space 1}  143.27{col 46}{space 3}0.000{col 54}{space 4}  4.67184{col 67}{space 3} 4.801432
{txt}{space 10}6  {c |}{col 14}{res}{space 2} 4.746763{col 26}{space 2} .0329421{col 37}{space 1}  144.09{col 46}{space 3}0.000{col 54}{space 4} 4.682198{col 67}{space 3} 4.811328
{txt}{space 10}7  {c |}{col 14}{res}{space 2}  4.75689{col 26}{space 2} .0335918{col 37}{space 1}  141.61{col 46}{space 3}0.000{col 54}{space 4} 4.691052{col 67}{space 3} 4.822729
{txt}{space 10}8  {c |}{col 14}{res}{space 2} 4.767018{col 26}{space 2} .0349665{col 37}{space 1}  136.33{col 46}{space 3}0.000{col 54}{space 4} 4.698485{col 67}{space 3} 4.835551
{txt}{space 10}9  {c |}{col 14}{res}{space 2} 4.777145{col 26}{space 2} .0369853{col 37}{space 1}  129.16{col 46}{space 3}0.000{col 54}{space 4} 4.704655{col 67}{space 3} 4.849635
{txt}{space 9}10  {c |}{col 14}{res}{space 2} 4.787272{col 26}{space 2} .0395498{col 37}{space 1}  121.04{col 46}{space 3}0.000{col 54}{space 4} 4.709756{col 67}{space 3} 4.864788
{txt}{space 9}11  {c |}{col 14}{res}{space 2} 4.797399{col 26}{space 2} .0425613{col 37}{space 1}  112.72{col 46}{space 3}0.000{col 54}{space 4} 4.713981{col 67}{space 3} 4.880818
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. estimates store align_0
{txt}
{com}. estimates restore mod9
{txt}(results {stata estimates replay mod9:mod9} are active now)

{com}. margins, at(mingtidist_lag1 = (0.5 0.75 1 1.25 1.5 1.75 2 2.25 2.5 2.75 3) ideal_point_lag1 = 1) post
{res}
{txt}Predictive margins{col 51}Number of obs{col 67}= {res}      2450
{txt}Model VCE{col 14}: {res}Robust

{txt}{p2colset 1 14 16 2}{...}
{p2col:Expression}:{space 1}{res:Linear prediction, predict()}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:1._at}:{space 1}{res:{txt:mingtidist~1}{space 4}{txt:=} {space 9}.5}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col: }{space 2}{res:{txt:ideal_poin~1}{space 4}{txt:=} {space 10}1}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:2._at}:{space 1}{res:{txt:mingtidist~1}{space 4}{txt:=} {space 8}.75}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col: }{space 2}{res:{txt:ideal_poin~1}{space 4}{txt:=} {space 10}1}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:3._at}:{space 1}{res:{txt:mingtidist~1}{space 4}{txt:=} {space 10}1}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col: }{space 2}{res:{txt:ideal_poin~1}{space 4}{txt:=} {space 10}1}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:4._at}:{space 1}{res:{txt:mingtidist~1}{space 4}{txt:=} {space 7}1.25}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col: }{space 2}{res:{txt:ideal_poin~1}{space 4}{txt:=} {space 10}1}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:5._at}:{space 1}{res:{txt:mingtidist~1}{space 4}{txt:=} {space 8}1.5}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col: }{space 2}{res:{txt:ideal_poin~1}{space 4}{txt:=} {space 10}1}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:6._at}:{space 1}{res:{txt:mingtidist~1}{space 4}{txt:=} {space 7}1.75}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col: }{space 2}{res:{txt:ideal_poin~1}{space 4}{txt:=} {space 10}1}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:7._at}:{space 1}{res:{txt:mingtidist~1}{space 4}{txt:=} {space 10}2}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col: }{space 2}{res:{txt:ideal_poin~1}{space 4}{txt:=} {space 10}1}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:8._at}:{space 1}{res:{txt:mingtidist~1}{space 4}{txt:=} {space 7}2.25}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col: }{space 2}{res:{txt:ideal_poin~1}{space 4}{txt:=} {space 10}1}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:9._at}:{space 1}{res:{txt:mingtidist~1}{space 4}{txt:=} {space 8}2.5}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col: }{space 2}{res:{txt:ideal_poin~1}{space 4}{txt:=} {space 10}1}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:10._at}:{space 1}{res:{txt:mingtidist~1}{space 4}{txt:=} {space 7}2.75}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col: }{space 2}{res:{txt:ideal_poin~1}{space 4}{txt:=} {space 10}1}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:11._at}:{space 1}{res:{txt:mingtidist~1}{space 4}{txt:=} {space 10}3}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col: }{space 2}{res:{txt:ideal_poin~1}{space 4}{txt:=} {space 10}1}{p_end}
{p2colreset}{...}

{res}{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26} Delta-method
{col 14}{c |}     Margin{col 26}   Std. Err.{col 38}      z{col 46}   P>|z|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 9}_at {c |}
{space 10}1  {c |}{col 14}{res}{space 2} 4.847515{col 26}{space 2} .0887542{col 37}{space 1}   54.62{col 46}{space 3}0.000{col 54}{space 4}  4.67356{col 67}{space 3}  5.02147
{txt}{space 10}2  {c |}{col 14}{res}{space 2}  4.87475{col 26}{space 2} .0837918{col 37}{space 1}   58.18{col 46}{space 3}0.000{col 54}{space 4} 4.710521{col 67}{space 3} 5.038979
{txt}{space 10}3  {c |}{col 14}{res}{space 2} 4.901985{col 26}{space 2} .0794001{col 37}{space 1}   61.74{col 46}{space 3}0.000{col 54}{space 4} 4.746364{col 67}{space 3} 5.057607
{txt}{space 10}4  {c |}{col 14}{res}{space 2}  4.92922{col 26}{space 2} .0756786{col 37}{space 1}   65.13{col 46}{space 3}0.000{col 54}{space 4} 4.780893{col 67}{space 3} 5.077548
{txt}{space 10}5  {c |}{col 14}{res}{space 2} 4.956456{col 26}{space 2} .0727302{col 37}{space 1}   68.15{col 46}{space 3}0.000{col 54}{space 4} 4.813907{col 67}{space 3} 5.099004
{txt}{space 10}6  {c |}{col 14}{res}{space 2} 4.983691{col 26}{space 2} .0706518{col 37}{space 1}   70.54{col 46}{space 3}0.000{col 54}{space 4} 4.845216{col 67}{space 3} 5.122166
{txt}{space 10}7  {c |}{col 14}{res}{space 2} 5.010926{col 26}{space 2} .0695214{col 37}{space 1}   72.08{col 46}{space 3}0.000{col 54}{space 4} 4.874667{col 67}{space 3} 5.147185
{txt}{space 10}8  {c |}{col 14}{res}{space 2} 5.038161{col 26}{space 2} .0693854{col 37}{space 1}   72.61{col 46}{space 3}0.000{col 54}{space 4} 4.902168{col 67}{space 3} 5.174154
{txt}{space 10}9  {c |}{col 14}{res}{space 2} 5.065396{col 26}{space 2} .0702495{col 37}{space 1}   72.11{col 46}{space 3}0.000{col 54}{space 4}  4.92771{col 67}{space 3} 5.203083
{txt}{space 9}10  {c |}{col 14}{res}{space 2} 5.092631{col 26}{space 2} .0720778{col 37}{space 1}   70.65{col 46}{space 3}0.000{col 54}{space 4} 4.951361{col 67}{space 3} 5.233901
{txt}{space 9}11  {c |}{col 14}{res}{space 2} 5.119867{col 26}{space 2} .0747997{col 37}{space 1}   68.45{col 46}{space 3}0.000{col 54}{space 4} 4.973262{col 67}{space 3} 5.266471
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. estimates store align_1
{txt}
{com}. coefplot align_n1 align_1, at ytitle(Predicted log trainees) xtitle (US-centric threat environment) recast(line) lwidth(*2) ciopts(recast(rarea)) ///
>  legend(c(3) r(1) label(2 "-1") label(4 "+1")  title("Ideal point from UNGA voting"))
{res}{txt}
{com}. graph export figure2a.tif, width(1200) replace
{txt}(file figure2a.tif written in TIFF format)

{com}. //FIGURE 2b. Interacting diplomatic alignment and civil conflicts
. estimates restore mod9
{txt}(results {stata estimates replay mod9:mod9} are active now)

{com}. margins, at(rebels_combined_lag1 = (0 1) ideal_point_lag = -1)
{res}
{txt}Predictive margins{col 51}Number of obs{col 67}= {res}      2450
{txt}Model VCE{col 14}: {res}Robust

{txt}{p2colset 1 14 16 2}{...}
{p2col:Expression}:{space 1}{res:Linear prediction, predict()}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:1._at}:{space 1}{res:{txt:ideal_poin~1}{space 4}{txt:=} {space 9}-1}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col: }{space 2}{res:{txt:rebels_combined_lag1}{txt:=} {space 10}0}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:2._at}:{space 1}{res:{txt:ideal_poin~1}{space 4}{txt:=} {space 9}-1}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col: }{space 2}{res:{txt:rebels_combined_lag1}{txt:=} {space 10}1}{p_end}
{p2colreset}{...}

{res}{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26} Delta-method
{col 14}{c |}     Margin{col 26}   Std. Err.{col 38}      z{col 46}   P>|z|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 9}_at {c |}
{space 10}1  {c |}{col 14}{res}{space 2} 4.617999{col 26}{space 2} .0531248{col 37}{space 1}   86.93{col 46}{space 3}0.000{col 54}{space 4} 4.513876{col 67}{space 3} 4.722122
{txt}{space 10}2  {c |}{col 14}{res}{space 2} 4.422636{col 26}{space 2} .0647061{col 37}{space 1}   68.35{col 46}{space 3}0.000{col 54}{space 4} 4.295814{col 67}{space 3} 4.549457
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. matrix AN1 = r(table)
{txt}
{com}. matrix reb_results = AN1[1, 1..2]
{txt}
{com}. matrix reb_results = reb_results \ AN1["ll", 1..2]
{txt}
{com}. matrix reb_results = reb_results \ AN1["ul", 1..2]
{txt}
{com}. matrix reb_results = reb_results \ (-1,-1\0,1)
{txt}
{com}. estimates restore mod9
{txt}(results {stata estimates replay mod9:mod9} are active now)

{com}. margins, at(rebels_combined_lag1 = (0 1) ideal_point_lag = 0)
{res}
{txt}Predictive margins{col 51}Number of obs{col 67}= {res}      2450
{txt}Model VCE{col 14}: {res}Robust

{txt}{p2colset 1 14 16 2}{...}
{p2col:Expression}:{space 1}{res:Linear prediction, predict()}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:1._at}:{space 1}{res:{txt:ideal_poin~1}{space 4}{txt:=} {space 10}0}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col: }{space 2}{res:{txt:rebels_combined_lag1}{txt:=} {space 10}0}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:2._at}:{space 1}{res:{txt:ideal_poin~1}{space 4}{txt:=} {space 10}0}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col: }{space 2}{res:{txt:rebels_combined_lag1}{txt:=} {space 10}1}{p_end}
{p2colreset}{...}

{res}{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26} Delta-method
{col 14}{c |}     Margin{col 26}   Std. Err.{col 38}      z{col 46}   P>|z|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 9}_at {c |}
{space 10}1  {c |}{col 14}{res}{space 2} 4.710865{col 26}{space 2} .0412874{col 37}{space 1}  114.10{col 46}{space 3}0.000{col 54}{space 4} 4.629943{col 67}{space 3} 4.791787
{txt}{space 10}2  {c |}{col 14}{res}{space 2} 4.733285{col 26}{space 2} .0547499{col 37}{space 1}   86.45{col 46}{space 3}0.000{col 54}{space 4} 4.625978{col 67}{space 3} 4.840593
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. matrix A0 = r(table)
{txt}
{com}. matrix reb_results_0 = A0["b", 1..2]
{txt}
{com}. matrix reb_results_0 = reb_results_0 \ A0["ll".."ul", 1..2]
{txt}
{com}. matrix reb_results_0 = reb_results_0 \ (0,0\0,1)
{txt}
{com}. estimates restore mod9
{txt}(results {stata estimates replay mod9:mod9} are active now)

{com}. margins, at(rebels_combined_lag1 = (0 1) ideal_point_lag = 1) 
{res}
{txt}Predictive margins{col 51}Number of obs{col 67}= {res}      2450
{txt}Model VCE{col 14}: {res}Robust

{txt}{p2colset 1 14 16 2}{...}
{p2col:Expression}:{space 1}{res:Linear prediction, predict()}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:1._at}:{space 1}{res:{txt:ideal_poin~1}{space 4}{txt:=} {space 10}1}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col: }{space 2}{res:{txt:rebels_combined_lag1}{txt:=} {space 10}0}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:2._at}:{space 1}{res:{txt:ideal_poin~1}{space 4}{txt:=} {space 10}1}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col: }{space 2}{res:{txt:rebels_combined_lag1}{txt:=} {space 10}1}{p_end}
{p2colreset}{...}

{res}{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26} Delta-method
{col 14}{c |}     Margin{col 26}   Std. Err.{col 38}      z{col 46}   P>|z|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 9}_at {c |}
{space 10}1  {c |}{col 14}{res}{space 2} 4.803732{col 26}{space 2} .0875262{col 37}{space 1}   54.88{col 46}{space 3}0.000{col 54}{space 4} 4.632183{col 67}{space 3}  4.97528
{txt}{space 10}2  {c |}{col 14}{res}{space 2} 5.043935{col 26}{space 2} .1130413{col 37}{space 1}   44.62{col 46}{space 3}0.000{col 54}{space 4} 4.822378{col 67}{space 3} 5.265492
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. matrix A1 = r(table)
{txt}
{com}. matrix reb_results_1 = A1["b", 1..2]
{txt}
{com}. matrix reb_results_1 = reb_results_1 \ A1["ll".."ul", 1..2]
{txt}
{com}. matrix reb_results_1 = reb_results_1 \ (1,1\0,1)
{txt}
{com}. matrix reb_results = reb_results, reb_results_0, reb_results_1
{txt}
{com}. matrix list reb_results
{res}
{txt}reb_results[5,6]
            1.         2.         1.         2.         1.         2.
          _at        _at        _at        _at        _at        _at
 b {res} 4.6179989  4.4226356  4.7108653  4.7332854  4.8037317  5.0439352
{txt}ll {res} 4.5138761   4.295814  4.6299435  4.6259776  4.6321834  4.8223782
{txt}ul {res} 4.7221217  4.5494572  4.7917871  4.8405932  4.9752799  5.2654921
{txt}r4 {res}        -1         -1          0          0          1          1
{txt}r5 {res}         0          1          0          1          0          1
{reset}
{com}. matrix rownames reb_results = b ll ul idealpt rebel
{txt}
{com}. matrix reb_results = reb_results'
{txt}
{com}. preserve
{txt}
{com}. clear
{txt}
{com}. svmat reb_results, names(col)
{txt}number of observations will be reset to 6
Press any key to continue, or Break to abort
obs was 0, now 6

{com}. replace rebel = rebel - 0.01 in 1/2
{txt}(2 real changes made)

{com}. replace rebel = rebel + 0.01 in 5/6
{txt}(2 real changes made)

{com}. twoway (scatter b rebel if idealpt==-1, mcol(navy)) (rspike ll ul rebel if idealpt==-1, lcol(navy)) ///
>  (scatter b rebel if idealpt==1, mcol(maroon)) (rspike ll ul rebel if idealpt==1, lcol(maroon)) ///
>  , ytitle(Predicted log trainees) xtitle(" ") xlab(0 "No rebellion" 1 "Rebellion") ///
>  xscale(range(-0.25 1.25)) ///
>  legend(order(2 4 6) r(1) label(2 "-1") label(4 "+1") title("Ideal point from UNGA voting"))
{res}{txt}
{com}. graph export figure2b.tif, width(1200) replace
{txt}(file figure2b.tif written in TIFF format)

{com}. restore
{txt}
{com}. 
. //Text claim (results section, around  Figure 2): substantive relationships are substantially the same for expenditures
. estimates restore mod10
{txt}(results {stata estimates replay mod10:mod10} are active now)

{com}. margins, at(mingtidist_lag1 = (0.5 0.75 1 1.25 1.5 1.75 2 2.25 2.5 2.75 3) ideal_point_lag1 = -1) post
{res}
{txt}Predictive margins{col 51}Number of obs{col 67}= {res}      2450
{txt}Model VCE{col 14}: {res}Robust

{txt}{p2colset 1 14 16 2}{...}
{p2col:Expression}:{space 1}{res:Linear prediction, predict()}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:1._at}:{space 1}{res:{txt:mingtidist~1}{space 4}{txt:=} {space 9}.5}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col: }{space 2}{res:{txt:ideal_poin~1}{space 4}{txt:=} {space 9}-1}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:2._at}:{space 1}{res:{txt:mingtidist~1}{space 4}{txt:=} {space 8}.75}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col: }{space 2}{res:{txt:ideal_poin~1}{space 4}{txt:=} {space 9}-1}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:3._at}:{space 1}{res:{txt:mingtidist~1}{space 4}{txt:=} {space 10}1}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col: }{space 2}{res:{txt:ideal_poin~1}{space 4}{txt:=} {space 9}-1}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:4._at}:{space 1}{res:{txt:mingtidist~1}{space 4}{txt:=} {space 7}1.25}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col: }{space 2}{res:{txt:ideal_poin~1}{space 4}{txt:=} {space 9}-1}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:5._at}:{space 1}{res:{txt:mingtidist~1}{space 4}{txt:=} {space 8}1.5}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col: }{space 2}{res:{txt:ideal_poin~1}{space 4}{txt:=} {space 9}-1}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:6._at}:{space 1}{res:{txt:mingtidist~1}{space 4}{txt:=} {space 7}1.75}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col: }{space 2}{res:{txt:ideal_poin~1}{space 4}{txt:=} {space 9}-1}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:7._at}:{space 1}{res:{txt:mingtidist~1}{space 4}{txt:=} {space 10}2}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col: }{space 2}{res:{txt:ideal_poin~1}{space 4}{txt:=} {space 9}-1}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:8._at}:{space 1}{res:{txt:mingtidist~1}{space 4}{txt:=} {space 7}2.25}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col: }{space 2}{res:{txt:ideal_poin~1}{space 4}{txt:=} {space 9}-1}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:9._at}:{space 1}{res:{txt:mingtidist~1}{space 4}{txt:=} {space 8}2.5}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col: }{space 2}{res:{txt:ideal_poin~1}{space 4}{txt:=} {space 9}-1}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:10._at}:{space 1}{res:{txt:mingtidist~1}{space 4}{txt:=} {space 7}2.75}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col: }{space 2}{res:{txt:ideal_poin~1}{space 4}{txt:=} {space 9}-1}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:11._at}:{space 1}{res:{txt:mingtidist~1}{space 4}{txt:=} {space 10}3}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col: }{space 2}{res:{txt:ideal_poin~1}{space 4}{txt:=} {space 9}-1}{p_end}
{p2colreset}{...}

{res}{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26} Delta-method
{col 14}{c |}     Margin{col 26}   Std. Err.{col 38}      z{col 46}   P>|z|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 9}_at {c |}
{space 10}1  {c |}{col 14}{res}{space 2} 12.79593{col 26}{space 2} .1111977{col 37}{space 1}  115.07{col 46}{space 3}0.000{col 54}{space 4} 12.57798{col 67}{space 3} 13.01387
{txt}{space 10}2  {c |}{col 14}{res}{space 2}  12.7817{col 26}{space 2}  .104644{col 37}{space 1}  122.14{col 46}{space 3}0.000{col 54}{space 4}  12.5766{col 67}{space 3}  12.9868
{txt}{space 10}3  {c |}{col 14}{res}{space 2} 12.76747{col 26}{space 2} .1001966{col 37}{space 1}  127.42{col 46}{space 3}0.000{col 54}{space 4} 12.57109{col 67}{space 3} 12.96385
{txt}{space 10}4  {c |}{col 14}{res}{space 2} 12.75324{col 26}{space 2} .0981422{col 37}{space 1}  129.95{col 46}{space 3}0.000{col 54}{space 4} 12.56089{col 67}{space 3}  12.9456
{txt}{space 10}5  {c |}{col 14}{res}{space 2} 12.73901{col 26}{space 2} .0986306{col 37}{space 1}  129.16{col 46}{space 3}0.000{col 54}{space 4}  12.5457{col 67}{space 3} 12.93232
{txt}{space 10}6  {c |}{col 14}{res}{space 2} 12.72478{col 26}{space 2}  .101625{col 37}{space 1}  125.21{col 46}{space 3}0.000{col 54}{space 4}  12.5256{col 67}{space 3} 12.92397
{txt}{space 10}7  {c |}{col 14}{res}{space 2} 12.71056{col 26}{space 2} .1069152{col 37}{space 1}  118.88{col 46}{space 3}0.000{col 54}{space 4} 12.50101{col 67}{space 3} 12.92011
{txt}{space 10}8  {c |}{col 14}{res}{space 2} 12.69633{col 26}{space 2} .1141824{col 37}{space 1}  111.19{col 46}{space 3}0.000{col 54}{space 4} 12.47253{col 67}{space 3} 12.92012
{txt}{space 10}9  {c |}{col 14}{res}{space 2}  12.6821{col 26}{space 2} .1230769{col 37}{space 1}  103.04{col 46}{space 3}0.000{col 54}{space 4} 12.44087{col 67}{space 3} 12.92332
{txt}{space 9}10  {c |}{col 14}{res}{space 2} 12.66787{col 26}{space 2} .1332734{col 37}{space 1}   95.05{col 46}{space 3}0.000{col 54}{space 4} 12.40666{col 67}{space 3} 12.92908
{txt}{space 9}11  {c |}{col 14}{res}{space 2} 12.65364{col 26}{space 2} .1444965{col 37}{space 1}   87.57{col 46}{space 3}0.000{col 54}{space 4} 12.37043{col 67}{space 3} 12.93685
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. estimates store align_n1
{txt}
{com}. estimates restore mod10
{txt}(results {stata estimates replay mod10:mod10} are active now)

{com}. margins, at(mingtidist_lag1 = (0.5 0.75 1 1.25 1.5 1.75 2 2.25 2.5 2.75 3) ideal_point_lag1 = 0) post
{res}
{txt}Predictive margins{col 51}Number of obs{col 67}= {res}      2450
{txt}Model VCE{col 14}: {res}Robust

{txt}{p2colset 1 14 16 2}{...}
{p2col:Expression}:{space 1}{res:Linear prediction, predict()}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:1._at}:{space 1}{res:{txt:mingtidist~1}{space 4}{txt:=} {space 9}.5}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col: }{space 2}{res:{txt:ideal_poin~1}{space 4}{txt:=} {space 10}0}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:2._at}:{space 1}{res:{txt:mingtidist~1}{space 4}{txt:=} {space 8}.75}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col: }{space 2}{res:{txt:ideal_poin~1}{space 4}{txt:=} {space 10}0}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:3._at}:{space 1}{res:{txt:mingtidist~1}{space 4}{txt:=} {space 10}1}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col: }{space 2}{res:{txt:ideal_poin~1}{space 4}{txt:=} {space 10}0}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:4._at}:{space 1}{res:{txt:mingtidist~1}{space 4}{txt:=} {space 7}1.25}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col: }{space 2}{res:{txt:ideal_poin~1}{space 4}{txt:=} {space 10}0}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:5._at}:{space 1}{res:{txt:mingtidist~1}{space 4}{txt:=} {space 8}1.5}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col: }{space 2}{res:{txt:ideal_poin~1}{space 4}{txt:=} {space 10}0}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:6._at}:{space 1}{res:{txt:mingtidist~1}{space 4}{txt:=} {space 7}1.75}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col: }{space 2}{res:{txt:ideal_poin~1}{space 4}{txt:=} {space 10}0}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:7._at}:{space 1}{res:{txt:mingtidist~1}{space 4}{txt:=} {space 10}2}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col: }{space 2}{res:{txt:ideal_poin~1}{space 4}{txt:=} {space 10}0}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:8._at}:{space 1}{res:{txt:mingtidist~1}{space 4}{txt:=} {space 7}2.25}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col: }{space 2}{res:{txt:ideal_poin~1}{space 4}{txt:=} {space 10}0}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:9._at}:{space 1}{res:{txt:mingtidist~1}{space 4}{txt:=} {space 8}2.5}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col: }{space 2}{res:{txt:ideal_poin~1}{space 4}{txt:=} {space 10}0}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:10._at}:{space 1}{res:{txt:mingtidist~1}{space 4}{txt:=} {space 7}2.75}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col: }{space 2}{res:{txt:ideal_poin~1}{space 4}{txt:=} {space 10}0}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:11._at}:{space 1}{res:{txt:mingtidist~1}{space 4}{txt:=} {space 10}3}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col: }{space 2}{res:{txt:ideal_poin~1}{space 4}{txt:=} {space 10}0}{p_end}
{p2colreset}{...}

{res}{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26} Delta-method
{col 14}{c |}     Margin{col 26}   Std. Err.{col 38}      z{col 46}   P>|z|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 9}_at {c |}
{space 10}1  {c |}{col 14}{res}{space 2} 13.03623{col 26}{space 2} .0867382{col 37}{space 1}  150.29{col 46}{space 3}0.000{col 54}{space 4} 12.86623{col 67}{space 3} 13.20624
{txt}{space 10}2  {c |}{col 14}{res}{space 2} 13.05711{col 26}{space 2} .0820348{col 37}{space 1}  159.17{col 46}{space 3}0.000{col 54}{space 4} 12.89632{col 67}{space 3} 13.21789
{txt}{space 10}3  {c |}{col 14}{res}{space 2} 13.07798{col 26}{space 2} .0784136{col 37}{space 1}  166.78{col 46}{space 3}0.000{col 54}{space 4} 12.92429{col 67}{space 3} 13.23167
{txt}{space 10}4  {c |}{col 14}{res}{space 2} 13.09885{col 26}{space 2} .0760295{col 37}{space 1}  172.29{col 46}{space 3}0.000{col 54}{space 4} 12.94984{col 67}{space 3} 13.24787
{txt}{space 10}5  {c |}{col 14}{res}{space 2} 13.11972{col 26}{space 2} .0750006{col 37}{space 1}  174.93{col 46}{space 3}0.000{col 54}{space 4} 12.97273{col 67}{space 3} 13.26672
{txt}{space 10}6  {c |}{col 14}{res}{space 2}  13.1406{col 26}{space 2} .0753823{col 37}{space 1}  174.32{col 46}{space 3}0.000{col 54}{space 4} 12.99285{col 67}{space 3} 13.28834
{txt}{space 10}7  {c |}{col 14}{res}{space 2} 13.16147{col 26}{space 2} .0771537{col 37}{space 1}  170.59{col 46}{space 3}0.000{col 54}{space 4} 13.01025{col 67}{space 3} 13.31269
{txt}{space 10}8  {c |}{col 14}{res}{space 2} 13.18234{col 26}{space 2} .0802228{col 37}{space 1}  164.32{col 46}{space 3}0.000{col 54}{space 4} 13.02511{col 67}{space 3} 13.33958
{txt}{space 10}9  {c |}{col 14}{res}{space 2} 13.20322{col 26}{space 2} .0844482{col 37}{space 1}  156.35{col 46}{space 3}0.000{col 54}{space 4}  13.0377{col 67}{space 3} 13.36873
{txt}{space 9}10  {c |}{col 14}{res}{space 2} 13.22409{col 26}{space 2} .0896667{col 37}{space 1}  147.48{col 46}{space 3}0.000{col 54}{space 4} 13.04834{col 67}{space 3} 13.39983
{txt}{space 9}11  {c |}{col 14}{res}{space 2} 13.24496{col 26}{space 2} .0957159{col 37}{space 1}  138.38{col 46}{space 3}0.000{col 54}{space 4} 13.05736{col 67}{space 3} 13.43256
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. estimates store align_0
{txt}
{com}. estimates restore mod10
{txt}(results {stata estimates replay mod10:mod10} are active now)

{com}. margins, at(mingtidist_lag1 = (0.5 0.75 1 1.25 1.5 1.75 2 2.25 2.5 2.75 3) ideal_point_lag1 = 1) post
{res}
{txt}Predictive margins{col 51}Number of obs{col 67}= {res}      2450
{txt}Model VCE{col 14}: {res}Robust

{txt}{p2colset 1 14 16 2}{...}
{p2col:Expression}:{space 1}{res:Linear prediction, predict()}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:1._at}:{space 1}{res:{txt:mingtidist~1}{space 4}{txt:=} {space 9}.5}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col: }{space 2}{res:{txt:ideal_poin~1}{space 4}{txt:=} {space 10}1}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:2._at}:{space 1}{res:{txt:mingtidist~1}{space 4}{txt:=} {space 8}.75}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col: }{space 2}{res:{txt:ideal_poin~1}{space 4}{txt:=} {space 10}1}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:3._at}:{space 1}{res:{txt:mingtidist~1}{space 4}{txt:=} {space 10}1}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col: }{space 2}{res:{txt:ideal_poin~1}{space 4}{txt:=} {space 10}1}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:4._at}:{space 1}{res:{txt:mingtidist~1}{space 4}{txt:=} {space 7}1.25}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col: }{space 2}{res:{txt:ideal_poin~1}{space 4}{txt:=} {space 10}1}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:5._at}:{space 1}{res:{txt:mingtidist~1}{space 4}{txt:=} {space 8}1.5}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col: }{space 2}{res:{txt:ideal_poin~1}{space 4}{txt:=} {space 10}1}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:6._at}:{space 1}{res:{txt:mingtidist~1}{space 4}{txt:=} {space 7}1.75}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col: }{space 2}{res:{txt:ideal_poin~1}{space 4}{txt:=} {space 10}1}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:7._at}:{space 1}{res:{txt:mingtidist~1}{space 4}{txt:=} {space 10}2}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col: }{space 2}{res:{txt:ideal_poin~1}{space 4}{txt:=} {space 10}1}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:8._at}:{space 1}{res:{txt:mingtidist~1}{space 4}{txt:=} {space 7}2.25}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col: }{space 2}{res:{txt:ideal_poin~1}{space 4}{txt:=} {space 10}1}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:9._at}:{space 1}{res:{txt:mingtidist~1}{space 4}{txt:=} {space 8}2.5}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col: }{space 2}{res:{txt:ideal_poin~1}{space 4}{txt:=} {space 10}1}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:10._at}:{space 1}{res:{txt:mingtidist~1}{space 4}{txt:=} {space 7}2.75}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col: }{space 2}{res:{txt:ideal_poin~1}{space 4}{txt:=} {space 10}1}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:11._at}:{space 1}{res:{txt:mingtidist~1}{space 4}{txt:=} {space 10}3}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col: }{space 2}{res:{txt:ideal_poin~1}{space 4}{txt:=} {space 10}1}{p_end}
{p2colreset}{...}

{res}{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26} Delta-method
{col 14}{c |}     Margin{col 26}   Std. Err.{col 38}      z{col 46}   P>|z|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 9}_at {c |}
{space 10}1  {c |}{col 14}{res}{space 2} 13.27654{col 26}{space 2} .1999491{col 37}{space 1}   66.40{col 46}{space 3}0.000{col 54}{space 4} 12.88465{col 67}{space 3} 13.66843
{txt}{space 10}2  {c |}{col 14}{res}{space 2} 13.33252{col 26}{space 2} .1907109{col 37}{space 1}   69.91{col 46}{space 3}0.000{col 54}{space 4} 12.95873{col 67}{space 3}  13.7063
{txt}{space 10}3  {c |}{col 14}{res}{space 2} 13.38849{col 26}{space 2} .1829349{col 37}{space 1}   73.19{col 46}{space 3}0.000{col 54}{space 4} 13.02994{col 67}{space 3} 13.74704
{txt}{space 10}4  {c |}{col 14}{res}{space 2} 13.44446{col 26}{space 2} .1768141{col 37}{space 1}   76.04{col 46}{space 3}0.000{col 54}{space 4} 13.09791{col 67}{space 3} 13.79101
{txt}{space 10}5  {c |}{col 14}{res}{space 2} 13.50044{col 26}{space 2} .1725249{col 37}{space 1}   78.25{col 46}{space 3}0.000{col 54}{space 4} 13.16229{col 67}{space 3} 13.83858
{txt}{space 10}6  {c |}{col 14}{res}{space 2} 13.55641{col 26}{space 2} .1702056{col 37}{space 1}   79.65{col 46}{space 3}0.000{col 54}{space 4} 13.22281{col 67}{space 3} 13.89001
{txt}{space 10}7  {c |}{col 14}{res}{space 2} 13.61238{col 26}{space 2} .1699371{col 37}{space 1}   80.10{col 46}{space 3}0.000{col 54}{space 4} 13.27931{col 67}{space 3} 13.94546
{txt}{space 10}8  {c |}{col 14}{res}{space 2} 13.66836{col 26}{space 2} .1717288{col 37}{space 1}   79.59{col 46}{space 3}0.000{col 54}{space 4} 13.33178{col 67}{space 3} 14.00494
{txt}{space 10}9  {c |}{col 14}{res}{space 2} 13.72433{col 26}{space 2} .1755178{col 37}{space 1}   78.19{col 46}{space 3}0.000{col 54}{space 4} 13.38032{col 67}{space 3} 14.06834
{txt}{space 9}10  {c |}{col 14}{res}{space 2} 13.78031{col 26}{space 2} .1811788{col 37}{space 1}   76.06{col 46}{space 3}0.000{col 54}{space 4}  13.4252{col 67}{space 3} 14.13541
{txt}{space 9}11  {c |}{col 14}{res}{space 2} 13.83628{col 26}{space 2} .1885432{col 37}{space 1}   73.39{col 46}{space 3}0.000{col 54}{space 4} 13.46674{col 67}{space 3} 14.20582
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. estimates store align_1
{txt}
{com}. coefplot align_n1 align_1, at ytitle(Predicted log training expenditures) xtitle (US-centric threat environment) recast(line) lwidth(*2) ciopts(recast(rarea)) ///
>  legend(c(3) r(1) label(2 "-1") label(4 "+1")  title("Ideal point from UNGA voting"))
{res}{txt}
{com}. 
. estimates restore mod10
{txt}(results {stata estimates replay mod10:mod10} are active now)

{com}. margins, at(rebels_combined_lag1 = (0 1) ideal_point_lag = -1)
{res}
{txt}Predictive margins{col 51}Number of obs{col 67}= {res}      2450
{txt}Model VCE{col 14}: {res}Robust

{txt}{p2colset 1 14 16 2}{...}
{p2col:Expression}:{space 1}{res:Linear prediction, predict()}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:1._at}:{space 1}{res:{txt:ideal_poin~1}{space 4}{txt:=} {space 9}-1}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col: }{space 2}{res:{txt:rebels_combined_lag1}{txt:=} {space 10}0}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:2._at}:{space 1}{res:{txt:ideal_poin~1}{space 4}{txt:=} {space 9}-1}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col: }{space 2}{res:{txt:rebels_combined_lag1}{txt:=} {space 10}1}{p_end}
{p2colreset}{...}

{res}{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26} Delta-method
{col 14}{c |}     Margin{col 26}   Std. Err.{col 38}      z{col 46}   P>|z|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 9}_at {c |}
{space 10}1  {c |}{col 14}{res}{space 2} 12.96885{col 26}{space 2}  .130092{col 37}{space 1}   99.69{col 46}{space 3}0.000{col 54}{space 4} 12.71387{col 67}{space 3} 13.22383
{txt}{space 10}2  {c |}{col 14}{res}{space 2} 12.51975{col 26}{space 2} .1480412{col 37}{space 1}   84.57{col 46}{space 3}0.000{col 54}{space 4} 12.22959{col 67}{space 3}  12.8099
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. matrix AN1 = r(table)
{txt}
{com}. matrix reb_results = AN1[1, 1..2]
{txt}
{com}. matrix reb_results = reb_results \ AN1["ll", 1..2]
{txt}
{com}. matrix reb_results = reb_results \ AN1["ul", 1..2]
{txt}
{com}. matrix reb_results = reb_results \ (-1,-1\0,1)
{txt}
{com}. estimates restore mod10
{txt}(results {stata estimates replay mod10:mod10} are active now)

{com}. margins, at(rebels_combined_lag1 = (0 1) ideal_point_lag = 0)
{res}
{txt}Predictive margins{col 51}Number of obs{col 67}= {res}      2450
{txt}Model VCE{col 14}: {res}Robust

{txt}{p2colset 1 14 16 2}{...}
{p2col:Expression}:{space 1}{res:Linear prediction, predict()}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:1._at}:{space 1}{res:{txt:ideal_poin~1}{space 4}{txt:=} {space 10}0}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col: }{space 2}{res:{txt:rebels_combined_lag1}{txt:=} {space 10}0}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:2._at}:{space 1}{res:{txt:ideal_poin~1}{space 4}{txt:=} {space 10}0}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col: }{space 2}{res:{txt:rebels_combined_lag1}{txt:=} {space 10}1}{p_end}
{p2colreset}{...}

{res}{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26} Delta-method
{col 14}{c |}     Margin{col 26}   Std. Err.{col 38}      z{col 46}   P>|z|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 9}_at {c |}
{space 10}1  {c |}{col 14}{res}{space 2} 13.13127{col 26}{space 2} .0841659{col 37}{space 1}  156.02{col 46}{space 3}0.000{col 54}{space 4} 12.96631{col 67}{space 3} 13.29623
{txt}{space 10}2  {c |}{col 14}{res}{space 2} 13.03803{col 26}{space 2} .1168768{col 37}{space 1}  111.55{col 46}{space 3}0.000{col 54}{space 4} 12.80896{col 67}{space 3}  13.2671
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. matrix A0 = r(table)
{txt}
{com}. matrix reb_results_0 = A0["b", 1..2]
{txt}
{com}. matrix reb_results_0 = reb_results_0 \ A0["ll".."ul", 1..2]
{txt}
{com}. matrix reb_results_0 = reb_results_0 \ (0,0\0,1)
{txt}
{com}. estimates restore mod10
{txt}(results {stata estimates replay mod10:mod10} are active now)

{com}. margins, at(rebels_combined_lag1 = (0 1) ideal_point_lag = 1) 
{res}
{txt}Predictive margins{col 51}Number of obs{col 67}= {res}      2450
{txt}Model VCE{col 14}: {res}Robust

{txt}{p2colset 1 14 16 2}{...}
{p2col:Expression}:{space 1}{res:Linear prediction, predict()}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:1._at}:{space 1}{res:{txt:ideal_poin~1}{space 4}{txt:=} {space 10}1}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col: }{space 2}{res:{txt:rebels_combined_lag1}{txt:=} {space 10}0}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:2._at}:{space 1}{res:{txt:ideal_poin~1}{space 4}{txt:=} {space 10}1}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col: }{space 2}{res:{txt:rebels_combined_lag1}{txt:=} {space 10}1}{p_end}
{p2colreset}{...}

{res}{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26} Delta-method
{col 14}{c |}     Margin{col 26}   Std. Err.{col 38}      z{col 46}   P>|z|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 9}_at {c |}
{space 10}1  {c |}{col 14}{res}{space 2} 13.29369{col 26}{space 2} .1827534{col 37}{space 1}   72.74{col 46}{space 3}0.000{col 54}{space 4}  12.9355{col 67}{space 3} 13.65188
{txt}{space 10}2  {c |}{col 14}{res}{space 2} 13.55631{col 26}{space 2} .2674044{col 37}{space 1}   50.70{col 46}{space 3}0.000{col 54}{space 4} 13.03221{col 67}{space 3} 14.08041
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. matrix A1 = r(table)
{txt}
{com}. matrix reb_results_1 = A1["b", 1..2]
{txt}
{com}. matrix reb_results_1 = reb_results_1 \ A1["ll".."ul", 1..2]
{txt}
{com}. matrix reb_results_1 = reb_results_1 \ (1,1\0,1)
{txt}
{com}. matrix reb_results = reb_results, reb_results_0, reb_results_1
{txt}
{com}. matrix list reb_results
{res}
{txt}reb_results[5,6]
            1.         2.         1.         2.         1.         2.
          _at        _at        _at        _at        _at        _at
 b {res}  12.96885  12.519749  13.131268   13.03803  13.293686  13.556311
{txt}ll {res} 12.713874  12.229594  12.966306  12.808956  12.935496  13.032208
{txt}ul {res} 13.223825  12.809905   13.29623  13.267104  13.651877  14.080414
{txt}r4 {res}        -1         -1          0          0          1          1
{txt}r5 {res}         0          1          0          1          0          1
{reset}
{com}. matrix rownames reb_results = b ll ul idealpt rebel
{txt}
{com}. matrix reb_results = reb_results'
{txt}
{com}. preserve
{txt}
{com}. clear
{txt}
{com}. svmat reb_results, names(col)
{txt}number of observations will be reset to 6
Press any key to continue, or Break to abort
obs was 0, now 6

{com}. replace rebel = rebel - 0.01 in 1/2
{txt}(2 real changes made)

{com}. replace rebel = rebel + 0.01 in 5/6
{txt}(2 real changes made)

{com}. twoway (scatter b rebel if idealpt==-1, mcol(navy)) (rspike ll ul rebel if idealpt==-1, lcol(navy)) ///
>  (scatter b rebel if idealpt==1, mcol(maroon)) (rspike ll ul rebel if idealpt==1, lcol(maroon)) ///
>  , ytitle(Predicted log training expenditures) xtitle(" ") xlab(0 "No rebellion" 1 "Rebellion") ///
>  xscale(range(-0.25 1.25)) ///
>  legend(order(2 4 6) r(1) label(2 "-1") label(4 "+1") title("Ideal point from UNGA voting"))
{res}{txt}
{com}. restore
{txt}
{com}. 
. 
. //text estimates (results section, after Figure 2) of substantive relationships between threat and training
. estimates restore mod9
{txt}(results {stata estimates replay mod9:mod9} are active now)

{com}. margins, at(mingtidist_lag1 = (0.5 3) ideal_point_lag1 = 1)
{res}
{txt}Predictive margins{col 51}Number of obs{col 67}= {res}      2450
{txt}Model VCE{col 14}: {res}Robust

{txt}{p2colset 1 14 16 2}{...}
{p2col:Expression}:{space 1}{res:Linear prediction, predict()}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:1._at}:{space 1}{res:{txt:mingtidist~1}{space 4}{txt:=} {space 9}.5}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col: }{space 2}{res:{txt:ideal_poin~1}{space 4}{txt:=} {space 10}1}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:2._at}:{space 1}{res:{txt:mingtidist~1}{space 4}{txt:=} {space 10}3}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col: }{space 2}{res:{txt:ideal_poin~1}{space 4}{txt:=} {space 10}1}{p_end}
{p2colreset}{...}

{res}{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26} Delta-method
{col 14}{c |}     Margin{col 26}   Std. Err.{col 38}      z{col 46}   P>|z|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 9}_at {c |}
{space 10}1  {c |}{col 14}{res}{space 2} 4.847515{col 26}{space 2} .0887542{col 37}{space 1}   54.62{col 46}{space 3}0.000{col 54}{space 4}  4.67356{col 67}{space 3}  5.02147
{txt}{space 10}2  {c |}{col 14}{res}{space 2} 5.119867{col 26}{space 2} .0747997{col 37}{space 1}   68.45{col 46}{space 3}0.000{col 54}{space 4} 4.973262{col 67}{space 3} 5.266471
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. matrix m1 = r(b)                                
{txt}
{com}. scalar expm11 = exp(m1[1,1])                    //this converts the first estimated margin to unlogged trainees
{txt}
{com}. scalar list expm11
{txt}    expm11 = {res} 127.42334
{txt}
{com}. scalar expm12 = exp(m1[1,2])                    //this converts the second estimated margin to unlogged trainees
{txt}
{com}. scalar list expm12
{txt}    expm12 = {res} 167.31306
{txt}
{com}. 
. estimates restore mod10
{txt}(results {stata estimates replay mod10:mod10} are active now)

{com}. margins, at(mingtidist_lag1 = (0.5 3) ideal_point_lag1 = 1)
{res}
{txt}Predictive margins{col 51}Number of obs{col 67}= {res}      2450
{txt}Model VCE{col 14}: {res}Robust

{txt}{p2colset 1 14 16 2}{...}
{p2col:Expression}:{space 1}{res:Linear prediction, predict()}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:1._at}:{space 1}{res:{txt:mingtidist~1}{space 4}{txt:=} {space 9}.5}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col: }{space 2}{res:{txt:ideal_poin~1}{space 4}{txt:=} {space 10}1}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:2._at}:{space 1}{res:{txt:mingtidist~1}{space 4}{txt:=} {space 10}3}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col: }{space 2}{res:{txt:ideal_poin~1}{space 4}{txt:=} {space 10}1}{p_end}
{p2colreset}{...}

{res}{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26} Delta-method
{col 14}{c |}     Margin{col 26}   Std. Err.{col 38}      z{col 46}   P>|z|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 9}_at {c |}
{space 10}1  {c |}{col 14}{res}{space 2} 13.27654{col 26}{space 2} .1999491{col 37}{space 1}   66.40{col 46}{space 3}0.000{col 54}{space 4} 12.88465{col 67}{space 3} 13.66843
{txt}{space 10}2  {c |}{col 14}{res}{space 2} 13.83628{col 26}{space 2} .1885432{col 37}{space 1}   73.39{col 46}{space 3}0.000{col 54}{space 4} 13.46674{col 67}{space 3} 14.20582
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. matrix m2 = r(b)                                
{txt}
{com}. scalar expm21 = exp(m2[1,1])                    //this converts the first estimated margin to unlogged dollars
{txt}
{com}. scalar list expm21
{txt}    expm21 = {res} 583349.43
{txt}
{com}. scalar expm22 = exp(m2[1,2])                    //this converts the second estimated margin to unlogged dollars
{txt}
{com}. scalar list expm22
{txt}    expm22 = {res} 1020986.4
{txt}
{com}. 
. estimates restore mod9
{txt}(results {stata estimates replay mod9:mod9} are active now)

{com}. margins, at(rebels_combined_lag1 = (0 1) ideal_point_lag1 = 1)
{res}
{txt}Predictive margins{col 51}Number of obs{col 67}= {res}      2450
{txt}Model VCE{col 14}: {res}Robust

{txt}{p2colset 1 14 16 2}{...}
{p2col:Expression}:{space 1}{res:Linear prediction, predict()}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:1._at}:{space 1}{res:{txt:ideal_poin~1}{space 4}{txt:=} {space 10}1}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col: }{space 2}{res:{txt:rebels_combined_lag1}{txt:=} {space 10}0}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:2._at}:{space 1}{res:{txt:ideal_poin~1}{space 4}{txt:=} {space 10}1}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col: }{space 2}{res:{txt:rebels_combined_lag1}{txt:=} {space 10}1}{p_end}
{p2colreset}{...}

{res}{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26} Delta-method
{col 14}{c |}     Margin{col 26}   Std. Err.{col 38}      z{col 46}   P>|z|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 9}_at {c |}
{space 10}1  {c |}{col 14}{res}{space 2} 4.803732{col 26}{space 2} .0875262{col 37}{space 1}   54.88{col 46}{space 3}0.000{col 54}{space 4} 4.632183{col 67}{space 3}  4.97528
{txt}{space 10}2  {c |}{col 14}{res}{space 2} 5.043935{col 26}{space 2} .1130413{col 37}{space 1}   44.62{col 46}{space 3}0.000{col 54}{space 4} 4.822378{col 67}{space 3} 5.265492
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. matrix m3 = r(b)                                
{txt}
{com}. scalar expm31 = exp(m3[1,1])                    //this converts the first estimated margin to unlogged trainees
{txt}
{com}. scalar list expm31
{txt}    expm31 = {res}  121.9647
{txt}
{com}. scalar expm32 = exp(m3[1,2])                    //this converts the second estimated margin to unlogged trainees
{txt}
{com}. scalar list expm32
{txt}    expm32 = {res} 155.07908
{txt}
{com}. 
. estimates restore mod10
{txt}(results {stata estimates replay mod10:mod10} are active now)

{com}. margins, at(rebels_combined_lag1 = (0 1) ideal_point_lag1 = 1)
{res}
{txt}Predictive margins{col 51}Number of obs{col 67}= {res}      2450
{txt}Model VCE{col 14}: {res}Robust

{txt}{p2colset 1 14 16 2}{...}
{p2col:Expression}:{space 1}{res:Linear prediction, predict()}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:1._at}:{space 1}{res:{txt:ideal_poin~1}{space 4}{txt:=} {space 10}1}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col: }{space 2}{res:{txt:rebels_combined_lag1}{txt:=} {space 10}0}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:2._at}:{space 1}{res:{txt:ideal_poin~1}{space 4}{txt:=} {space 10}1}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col: }{space 2}{res:{txt:rebels_combined_lag1}{txt:=} {space 10}1}{p_end}
{p2colreset}{...}

{res}{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26} Delta-method
{col 14}{c |}     Margin{col 26}   Std. Err.{col 38}      z{col 46}   P>|z|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 9}_at {c |}
{space 10}1  {c |}{col 14}{res}{space 2} 13.29369{col 26}{space 2} .1827534{col 37}{space 1}   72.74{col 46}{space 3}0.000{col 54}{space 4}  12.9355{col 67}{space 3} 13.65188
{txt}{space 10}2  {c |}{col 14}{res}{space 2} 13.55631{col 26}{space 2} .2674044{col 37}{space 1}   50.70{col 46}{space 3}0.000{col 54}{space 4} 13.03221{col 67}{space 3} 14.08041
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. matrix m4 = r(b)                                
{txt}
{com}. scalar expm41 = exp(m4[1,1])                    //this converts the first estimated margin to unlogged dollars
{txt}
{com}. scalar list expm41
{txt}    expm41 = {res} 593437.07
{txt}
{com}. scalar expm42 = exp(m4[1,2])                    //this converts the second estimated margin to unlogged dollars
{txt}
{com}. scalar list expm42
{txt}    expm42 = {res} 771668.89
{txt}
{com}. 
. 
. 
. //APPENDIX
. 
. //appendix table 1 -- descriptives
. su log_trainees log_trainexp coup_suc_lag1 threat_lag1 mingtidist_lag1 ideal_point_lag1 imf_tax_lag1 rebels_combined_lag1 islamist_combined_lag1 demtrans_last5_ert v2x_regime_lag1 log_wb_pop_lag1 if mainsample==1

{txt}    Variable {c |}       Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 56}
log_trainees {c |}{res}      2450    4.638751    1.991892          0   9.575608
{txt}log_trainexp {c |}{res}      2450    12.95062    3.715054          0   19.31323
{txt}coup_suc_l~1 {c |}{res}      2450    .0102041    .1005191          0          1
{txt}{space 1}threat_lag1 {c |}{res}      2450    .0216327    .1455106          0          1
{txt}mingtidist~1 {c |}{res}      2450    1.120454    1.030927   .3364144   10.24867
{txt}{hline 13}{c +}{hline 56}
ideal_poin~1 {c |}{res}      2450   -.3787488    .6590593  -2.028844   2.531747
{txt}imf_tax_lag1 {c |}{res}      2450    15.87741    7.993272   .3622457   54.08171
{txt}rebels_com~1 {c |}{res}      2450    .4636735    .4987804          0          1
{txt}islamist_c~1 {c |}{res}      2450    .2122449    .4089808          0          1
{txt}demtrans_l~t {c |}{res}      2450    .2767347    .4474755          0          1
{txt}{hline 13}{c +}{hline 56}
v2x_regime~1 {c |}{res}      2450    1.423265    .8964505          0          3
{txt}log_wb_pop~1 {c |}{res}      2450     15.9681    1.701396   11.29489   21.04997
{txt}
{com}. 
. //appendix figure 1 -- histograms of training
. hist log_trainees if mainsample==1, xtitle("Log trainees")
{txt}(bin={res}33{txt}, start={res}0{txt}, width={res}.29016995{txt})
{res}{txt}
{com}. graph export figureA1a.tif, width(1200) replace
{txt}(file figureA1a.tif written in TIFF format)

{com}. hist log_trainexp if mainsample==1, xtitle("Log training expenditures")
{txt}(bin={res}33{txt}, start={res}0{txt}, width={res}.58524929{txt})
{res}{txt}
{com}. graph export figureA1b.tif, width(1200) replace
{txt}(file figureA1b.tif written in TIFF format)

{com}. 
. //appendix table 2 -- democracy-training relationship weakens when ideal point is introduced
. xtreg log_trainees coup_suc_lag1 log_trainees_lag1  demtrans_last5_ert v2x_regime_lag1 if NATOAndOthers==0 & year>=1999 & iraqaf==0 & regforce==1, re vce(robust)
{res}
{txt}Random-effects GLS regression                   Number of obs      = {res}     2635
{txt}Group variable: {res}ccode                           {txt}Number of groups   = {res}      147

{txt}R-sq:  within  = {res}0.3250                         {txt}Obs per group: min = {res}        4
{txt}       between = {res}0.9891                                        {txt}avg = {res}     17.9
{txt}       overall = {res}0.7211                                        {txt}max = {res}       19

                                                {txt}Wald chi2({res}4{txt})       = {res}  2201.27
{txt}corr(u_i, X)   = {res}0{txt} (assumed)                    Prob > chi2        =    {res}0.0000

{txt}{ralign 84:(Std. Err. adjusted for {res:147} clusters in ccode)}
{hline 19}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 20}{c |}{col 32}    Robust
{col 1}      log_trainees{col 20}{c |}      Coef.{col 32}   Std. Err.{col 44}      z{col 52}   P>|z|{col 60}     [95% Con{col 73}f. Interval]
{hline 19}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 5}coup_suc_lag1 {c |}{col 20}{res}{space 2}-.5562408{col 32}{space 2} .4399263{col 43}{space 1}   -1.26{col 52}{space 3}0.206{col 60}{space 4} -1.41848{col 73}{space 3} .3059988
{txt}{space 1}log_trainees_lag1 {c |}{col 20}{res}{space 2} .8213509{col 32}{space 2} .0184942{col 43}{space 1}   44.41{col 52}{space 3}0.000{col 60}{space 4} .7851029{col 73}{space 3} .8575989
{txt}demtrans_last5_ert {c |}{col 20}{res}{space 2} .1664786{col 32}{space 2} .0484414{col 43}{space 1}    3.44{col 52}{space 3}0.001{col 60}{space 4} .0715351{col 73}{space 3}  .261422
{txt}{space 3}v2x_regime_lag1 {c |}{col 20}{res}{space 2}  .072383{col 32}{space 2} .0298563{col 43}{space 1}    2.42{col 52}{space 3}0.015{col 60}{space 4} .0138656{col 73}{space 3} .1309003
{txt}{space 13}_cons {c |}{col 20}{res}{space 2} .7149184{col 32}{space 2} .1045751{col 43}{space 1}    6.84{col 52}{space 3}0.000{col 60}{space 4} .5099549{col 73}{space 3} .9198818
{txt}{hline 19}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
           sigma_u {c |} {res}         0
           {txt}sigma_e {c |} {res}  1.015446
               {txt}rho {c |} {res}         0{txt}   (fraction of variance due to u_i)
{hline 19}{c BT}{hline 64}

{com}. outreg2 using tableA2.xls, replace title(Cross-section time-series results, clarifying the relationship between democracy and training) ctitle(Trainees) label
{txt}{browse `"tableA2.xls"'}
{browse `"C:\Users\Theodore McLauchlin\Dropbox\Military training - selection paper\ISQ Submission\Final submission"' :dir}{com} : {txt}{stata `"seeout using "tableA2.txt", label"':seeout}

{com}. xtreg log_trainexp coup_suc_lag1 log_trainexp_lag1 demtrans_last5_ert v2x_regime_lag1  if NATOAndOthers==0 & year>=1999 & iraqaf==0 & regforce==1, re vce(robust)
{res}
{txt}Random-effects GLS regression                   Number of obs      = {res}     2635
{txt}Group variable: {res}ccode                           {txt}Number of groups   = {res}      147

{txt}R-sq:  within  = {res}0.2791                         {txt}Obs per group: min = {res}        4
{txt}       between = {res}0.9852                                        {txt}avg = {res}     17.9
{txt}       overall = {res}0.7151                                        {txt}max = {res}       19

                                                {txt}Wald chi2({res}4{txt})       = {res}   842.89
{txt}corr(u_i, X)   = {res}0{txt} (assumed)                    Prob > chi2        =    {res}0.0000

{txt}{ralign 84:(Std. Err. adjusted for {res:147} clusters in ccode)}
{hline 19}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 20}{c |}{col 32}    Robust
{col 1}      log_trainexp{col 20}{c |}      Coef.{col 32}   Std. Err.{col 44}      z{col 52}   P>|z|{col 60}     [95% Con{col 73}f. Interval]
{hline 19}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 5}coup_suc_lag1 {c |}{col 20}{res}{space 2}-1.671949{col 32}{space 2} 1.089711{col 43}{space 1}   -1.53{col 52}{space 3}0.125{col 60}{space 4}-3.807743{col 73}{space 3} .4638452
{txt}{space 1}log_trainexp_lag1 {c |}{col 20}{res}{space 2} .8020121{col 32}{space 2} .0283172{col 43}{space 1}   28.32{col 52}{space 3}0.000{col 60}{space 4} .7465115{col 73}{space 3} .8575127
{txt}demtrans_last5_ert {c |}{col 20}{res}{space 2} .3446074{col 32}{space 2} .1137153{col 43}{space 1}    3.03{col 52}{space 3}0.002{col 60}{space 4} .1217295{col 73}{space 3} .5674853
{txt}{space 3}v2x_regime_lag1 {c |}{col 20}{res}{space 2} .1655739{col 32}{space 2} .0654642{col 43}{space 1}    2.53{col 52}{space 3}0.011{col 60}{space 4} .0372664{col 73}{space 3} .2938814
{txt}{space 13}_cons {c |}{col 20}{res}{space 2} 2.333293{col 32}{space 2}   .42032{col 43}{space 1}    5.55{col 52}{space 3}0.000{col 60}{space 4}  1.50948{col 73}{space 3} 3.157105
{txt}{hline 19}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
           sigma_u {c |} {res}         0
           {txt}sigma_e {c |} {res}  1.959113
               {txt}rho {c |} {res}         0{txt}   (fraction of variance due to u_i)
{hline 19}{c BT}{hline 64}

{com}. outreg2 using tableA2.xls, append ctitle(Expenditures) label
{txt}{browse `"tableA2.xls"'}
{browse `"C:\Users\Theodore McLauchlin\Dropbox\Military training - selection paper\ISQ Submission\Final submission"' :dir}{com} : {txt}{stata `"seeout using "tableA2.txt", label"':seeout}

{com}. xtreg log_trainees coup_suc_lag1 log_trainees_lag1   ideal_point_lag1 demtrans_last5_ert v2x_regime_lag1 if NATOAndOthers==0 & year>=1999 & iraqaf==0 & regforce==1, re vce(robust)
{res}
{txt}Random-effects GLS regression                   Number of obs      = {res}     2576
{txt}Group variable: {res}ccode                           {txt}Number of groups   = {res}      145

{txt}R-sq:  within  = {res}0.3221                         {txt}Obs per group: min = {res}        4
{txt}       between = {res}0.9854                                        {txt}avg = {res}     17.8
{txt}       overall = {res}0.7231                                        {txt}max = {res}       19

                                                {txt}Wald chi2({res}5{txt})       = {res}  2442.88
{txt}corr(u_i, X)   = {res}0{txt} (assumed)                    Prob > chi2        =    {res}0.0000

{txt}{ralign 84:(Std. Err. adjusted for {res:145} clusters in ccode)}
{hline 19}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 20}{c |}{col 32}    Robust
{col 1}      log_trainees{col 20}{c |}      Coef.{col 32}   Std. Err.{col 44}      z{col 52}   P>|z|{col 60}     [95% Con{col 73}f. Interval]
{hline 19}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 5}coup_suc_lag1 {c |}{col 20}{res}{space 2}-.6107449{col 32}{space 2} .4361837{col 43}{space 1}   -1.40{col 52}{space 3}0.161{col 60}{space 4}-1.465649{col 73}{space 3} .2441595
{txt}{space 1}log_trainees_lag1 {c |}{col 20}{res}{space 2} .8193659{col 32}{space 2} .0179818{col 43}{space 1}   45.57{col 52}{space 3}0.000{col 60}{space 4} .7841222{col 73}{space 3} .8546096
{txt}{space 2}ideal_point_lag1 {c |}{col 20}{res}{space 2} .1697732{col 32}{space 2} .0437738{col 43}{space 1}    3.88{col 52}{space 3}0.000{col 60}{space 4} .0839781{col 73}{space 3} .2555682
{txt}demtrans_last5_ert {c |}{col 20}{res}{space 2} .1720046{col 32}{space 2} .0475651{col 43}{space 1}    3.62{col 52}{space 3}0.000{col 60}{space 4} .0787788{col 73}{space 3} .2652305
{txt}{space 3}v2x_regime_lag1 {c |}{col 20}{res}{space 2} .0005224{col 32}{space 2} .0349261{col 43}{space 1}    0.01{col 52}{space 3}0.988{col 60}{space 4}-.0679316{col 73}{space 3} .0689764
{txt}{space 13}_cons {c |}{col 20}{res}{space 2} .8854773{col 32}{space 2} .1108806{col 43}{space 1}    7.99{col 52}{space 3}0.000{col 60}{space 4} .6681553{col 73}{space 3} 1.102799
{txt}{hline 19}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
           sigma_u {c |} {res}         0
           {txt}sigma_e {c |} {res} 1.0025131
               {txt}rho {c |} {res}         0{txt}   (fraction of variance due to u_i)
{hline 19}{c BT}{hline 64}

{com}. outreg2 using tableA2.xls, append ctitle(Trainees) label
{txt}{browse `"tableA2.xls"'}
{browse `"C:\Users\Theodore McLauchlin\Dropbox\Military training - selection paper\ISQ Submission\Final submission"' :dir}{com} : {txt}{stata `"seeout using "tableA2.txt", label"':seeout}

{com}. xtreg log_trainexp coup_suc_lag1 log_trainexp_lag1   ideal_point_lag1 demtrans_last5_ert v2x_regime_lag1 if NATOAndOthers==0 & year>=1999 & iraqaf==0 & regforce==1, re vce(robust)
{res}
{txt}Random-effects GLS regression                   Number of obs      = {res}     2576
{txt}Group variable: {res}ccode                           {txt}Number of groups   = {res}      145

{txt}R-sq:  within  = {res}0.2746                         {txt}Obs per group: min = {res}        4
{txt}       between = {res}0.9800                                        {txt}avg = {res}     17.8
{txt}       overall = {res}0.7242                                        {txt}max = {res}       19

                                                {txt}Wald chi2({res}5{txt})       = {res}  1024.95
{txt}corr(u_i, X)   = {res}0{txt} (assumed)                    Prob > chi2        =    {res}0.0000

{txt}{ralign 84:(Std. Err. adjusted for {res:145} clusters in ccode)}
{hline 19}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 20}{c |}{col 32}    Robust
{col 1}      log_trainexp{col 20}{c |}      Coef.{col 32}   Std. Err.{col 44}      z{col 52}   P>|z|{col 60}     [95% Con{col 73}f. Interval]
{hline 19}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 5}coup_suc_lag1 {c |}{col 20}{res}{space 2}-2.006828{col 32}{space 2} .9385932{col 43}{space 1}   -2.14{col 52}{space 3}0.033{col 60}{space 4}-3.846437{col 73}{space 3}-.1672188
{txt}{space 1}log_trainexp_lag1 {c |}{col 20}{res}{space 2} .8034601{col 32}{space 2} .0263788{col 43}{space 1}   30.46{col 52}{space 3}0.000{col 60}{space 4} .7517587{col 73}{space 3} .8551615
{txt}{space 2}ideal_point_lag1 {c |}{col 20}{res}{space 2} .3758859{col 32}{space 2} .1086599{col 43}{space 1}    3.46{col 52}{space 3}0.001{col 60}{space 4} .1629165{col 73}{space 3} .5888553
{txt}demtrans_last5_ert {c |}{col 20}{res}{space 2} .3583977{col 32}{space 2} .1099742{col 43}{space 1}    3.26{col 52}{space 3}0.001{col 60}{space 4} .1428523{col 73}{space 3} .5739431
{txt}{space 3}v2x_regime_lag1 {c |}{col 20}{res}{space 2} .0065121{col 32}{space 2} .0751317{col 43}{space 1}    0.09{col 52}{space 3}0.931{col 60}{space 4}-.1407433{col 73}{space 3} .1537675
{txt}{space 13}_cons {c |}{col 20}{res}{space 2} 2.672631{col 32}{space 2} .4049092{col 43}{space 1}    6.60{col 52}{space 3}0.000{col 60}{space 4} 1.879024{col 73}{space 3} 3.466239
{txt}{hline 19}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
           sigma_u {c |} {res}         0
           {txt}sigma_e {c |} {res} 1.9136932
               {txt}rho {c |} {res}         0{txt}   (fraction of variance due to u_i)
{hline 19}{c BT}{hline 64}

{com}. outreg2 using tableA2.xls, append ctitle(Expenditures) label
{txt}{browse `"tableA2.xls"'}
{browse `"C:\Users\Theodore McLauchlin\Dropbox\Military training - selection paper\ISQ Submission\Final submission"' :dir}{com} : {txt}{stata `"seeout using "tableA2.txt", label"':seeout}

{com}. 
. 
. //appendix table 3 -- including Iraq and Afghanistan
. //external threats
. xtreg log_trainees coup_suc_lag1 log_trainees_lag1 iraq afgh threat_lag1 c.mingtidist_lag1##c.ideal_point_lag1 if NATOAndOthers==0 & year>=1999 & regforce==1, re vce(robust)
{res}
{txt}Random-effects GLS regression                   Number of obs      = {res}     2723
{txt}Group variable: {res}ccode                           {txt}Number of groups   = {res}      153

{txt}R-sq:  within  = {res}0.3483                         {txt}Obs per group: min = {res}        4
{txt}       between = {res}0.9804                                        {txt}avg = {res}     17.8
{txt}       overall = {res}0.7338                                        {txt}max = {res}       19

                                                {txt}{help j_robustsingular##|_new:Wald chi2(7)}{col 68}={col 70}{res}        .
{txt}corr(u_i, X)   = {res}0{txt} (assumed)                    Prob > chi2        =    {res}     .

{txt}{ralign 102:(Std. Err. adjusted for {res:153} clusters in ccode)}
{hline 37}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 38}{c |}{col 50}    Robust
{col 1}                        log_trainees{col 38}{c |}      Coef.{col 50}   Std. Err.{col 62}      z{col 70}   P>|z|{col 78}     [95% Con{col 91}f. Interval]
{hline 37}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 23}coup_suc_lag1 {c |}{col 38}{res}{space 2}-.6121137{col 50}{space 2} .4298222{col 61}{space 1}   -1.42{col 70}{space 3}0.154{col 78}{space 4} -1.45455{col 91}{space 3} .2303223
{txt}{space 19}log_trainees_lag1 {c |}{col 38}{res}{space 2} .8076418{col 50}{space 2} .0177623{col 61}{space 1}   45.47{col 70}{space 3}0.000{col 78}{space 4} .7728283{col 91}{space 3} .8424553
{txt}{space 32}iraq {c |}{col 38}{res}{space 2} .7854548{col 50}{space 2} .0765916{col 61}{space 1}   10.26{col 70}{space 3}0.000{col 78}{space 4} .6353381{col 91}{space 3} .9355715
{txt}{space 32}afgh {c |}{col 38}{res}{space 2} 1.017113{col 50}{space 2} .0794243{col 61}{space 1}   12.81{col 70}{space 3}0.000{col 78}{space 4} .8614438{col 91}{space 3} 1.172781
{txt}{space 25}threat_lag1 {c |}{col 38}{res}{space 2}-.6285613{col 50}{space 2} .1144121{col 61}{space 1}   -5.49{col 70}{space 3}0.000{col 78}{space 4}-.8528048{col 91}{space 3}-.4043178
{txt}{space 21}mingtidist_lag1 {c |}{col 38}{res}{space 2}  .050211{col 50}{space 2} .0206979{col 61}{space 1}    2.43{col 70}{space 3}0.015{col 78}{space 4} .0096439{col 91}{space 3}  .090778
{txt}{space 20}ideal_point_lag1 {c |}{col 38}{res}{space 2} .0773845{col 50}{space 2}  .053324{col 61}{space 1}    1.45{col 70}{space 3}0.147{col 78}{space 4}-.0271287{col 91}{space 3} .1818977
{txt}{space 36} {c |}
c.mingtidist_lag1#c.ideal_point_lag1 {c |}{col 38}{res}{space 2} .0556207{col 50}{space 2} .0230566{col 61}{space 1}    2.41{col 70}{space 3}0.016{col 78}{space 4} .0104306{col 91}{space 3} .1008108
{txt}{space 36} {c |}
{space 31}_cons {c |}{col 38}{res}{space 2} .9231295{col 50}{space 2} .0977214{col 61}{space 1}    9.45{col 70}{space 3}0.000{col 78}{space 4}  .731599{col 91}{space 3}  1.11466
{txt}{hline 37}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
                             sigma_u {c |} {res}         0
                             {txt}sigma_e {c |} {res} 1.0191206
                                 {txt}rho {c |} {res}         0{txt}   (fraction of variance due to u_i)
{hline 37}{c BT}{hline 64}

{com}. outreg2 using tableA3.xls, replace title(Cross-section time-series results, including Iraq and Afghanistan) ctitle(Trainees) label
{txt}{browse `"tableA3.xls"'}
{browse `"C:\Users\Theodore McLauchlin\Dropbox\Military training - selection paper\ISQ Submission\Final submission"' :dir}{com} : {txt}{stata `"seeout using "tableA3.txt", label"':seeout}

{com}. xtreg log_trainexp coup_suc_lag1 log_trainexp_lag1 iraq afgh threat_lag1 c.mingtidist_lag1##c.ideal_point_lag1 if NATOAndOthers==0 & year>=1999 & regforce==1, re vce(robust)
{res}
{txt}Random-effects GLS regression                   Number of obs      = {res}     2723
{txt}Group variable: {res}ccode                           {txt}Number of groups   = {res}      153

{txt}R-sq:  within  = {res}0.3010                         {txt}Obs per group: min = {res}        4
{txt}       between = {res}0.9715                                        {txt}avg = {res}     17.8
{txt}       overall = {res}0.7311                                        {txt}max = {res}       19

                                                {txt}{help j_robustsingular##|_new:Wald chi2(7)}{col 68}={col 70}{res}        .
{txt}corr(u_i, X)   = {res}0{txt} (assumed)                    Prob > chi2        =    {res}     .

{txt}{ralign 102:(Std. Err. adjusted for {res:153} clusters in ccode)}
{hline 37}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 38}{c |}{col 50}    Robust
{col 1}                        log_trainexp{col 38}{c |}      Coef.{col 50}   Std. Err.{col 62}      z{col 70}   P>|z|{col 78}     [95% Con{col 91}f. Interval]
{hline 37}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 23}coup_suc_lag1 {c |}{col 38}{res}{space 2}-2.055762{col 50}{space 2} .9288162{col 61}{space 1}   -2.21{col 70}{space 3}0.027{col 78}{space 4}-3.876208{col 91}{space 3}-.2353158
{txt}{space 19}log_trainexp_lag1 {c |}{col 38}{res}{space 2} .7752128{col 50}{space 2} .0283195{col 61}{space 1}   27.37{col 70}{space 3}0.000{col 78}{space 4} .7197075{col 91}{space 3}  .830718
{txt}{space 32}iraq {c |}{col 38}{res}{space 2} 1.411633{col 50}{space 2} .1447324{col 61}{space 1}    9.75{col 70}{space 3}0.000{col 78}{space 4} 1.127963{col 91}{space 3} 1.695304
{txt}{space 32}afgh {c |}{col 38}{res}{space 2} 1.462231{col 50}{space 2}  .108799{col 61}{space 1}   13.44{col 70}{space 3}0.000{col 78}{space 4} 1.248988{col 91}{space 3} 1.675473
{txt}{space 25}threat_lag1 {c |}{col 38}{res}{space 2}-1.976216{col 50}{space 2} .4294315{col 61}{space 1}   -4.60{col 70}{space 3}0.000{col 78}{space 4}-2.817887{col 91}{space 3}-1.134546
{txt}{space 21}mingtidist_lag1 {c |}{col 38}{res}{space 2} .0842355{col 50}{space 2} .0388341{col 61}{space 1}    2.17{col 70}{space 3}0.030{col 78}{space 4} .0081222{col 91}{space 3} .1603489
{txt}{space 20}ideal_point_lag1 {c |}{col 38}{res}{space 2} .1870181{col 50}{space 2} .1255342{col 61}{space 1}    1.49{col 70}{space 3}0.136{col 78}{space 4}-.0590244{col 91}{space 3} .4330605
{txt}{space 36} {c |}
c.mingtidist_lag1#c.ideal_point_lag1 {c |}{col 38}{res}{space 2} .1153733{col 50}{space 2} .0499967{col 61}{space 1}    2.31{col 70}{space 3}0.021{col 78}{space 4} .0173816{col 91}{space 3}  .213365
{txt}{space 36} {c |}
{space 31}_cons {c |}{col 38}{res}{space 2} 3.065506{col 50}{space 2} .3933851{col 61}{space 1}    7.79{col 70}{space 3}0.000{col 78}{space 4} 2.294485{col 91}{space 3} 3.836526
{txt}{hline 37}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
                             sigma_u {c |} {res}         0
                             {txt}sigma_e {c |} {res} 1.9149214
                                 {txt}rho {c |} {res}         0{txt}   (fraction of variance due to u_i)
{hline 37}{c BT}{hline 64}

{com}. outreg2 using tableA3.xls, append ctitle(Expenditures) label
{txt}{browse `"tableA3.xls"'}
{browse `"C:\Users\Theodore McLauchlin\Dropbox\Military training - selection paper\ISQ Submission\Final submission"' :dir}{com} : {txt}{stata `"seeout using "tableA3.txt", label"':seeout}

{com}. //internal threats
. xtreg log_trainees coup_suc_lag1 log_trainees_lag1 iraq afgh imf_tax_lag1 rebels_combined_lag1##c.ideal_point_lag1  if NATOAndOthers==0 & year>=1999  & regforce==1, re vce(robust)
{res}
{txt}Random-effects GLS regression                   Number of obs      = {res}     2592
{txt}Group variable: {res}ccode                           {txt}Number of groups   = {res}      150

{txt}R-sq:  within  = {res}0.3097                         {txt}Obs per group: min = {res}        4
{txt}       between = {res}0.9817                                        {txt}avg = {res}     17.3
{txt}       overall = {res}0.7144                                        {txt}max = {res}       19

                                                {txt}{help j_robustsingular##|_new:Wald chi2(7)}{col 68}={col 70}{res}        .
{txt}corr(u_i, X)   = {res}0{txt} (assumed)                    Prob > chi2        =    {res}     .

{txt}{ralign 105:(Std. Err. adjusted for {res:150} clusters in ccode)}
{hline 40}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 41}{c |}{col 53}    Robust
{col 1}                           log_trainees{col 41}{c |}      Coef.{col 53}   Std. Err.{col 65}      z{col 73}   P>|z|{col 81}     [95% Con{col 94}f. Interval]
{hline 40}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 26}coup_suc_lag1 {c |}{col 41}{res}{space 2}-.6249502{col 53}{space 2} .4401459{col 64}{space 1}   -1.42{col 73}{space 3}0.156{col 81}{space 4} -1.48762{col 94}{space 3}   .23772
{txt}{space 22}log_trainees_lag1 {c |}{col 41}{res}{space 2} .8011728{col 53}{space 2} .0197264{col 64}{space 1}   40.61{col 73}{space 3}0.000{col 81}{space 4} .7625098{col 94}{space 3} .8398358
{txt}{space 35}iraq {c |}{col 41}{res}{space 2} .6727177{col 53}{space 2} .0850723{col 64}{space 1}    7.91{col 73}{space 3}0.000{col 81}{space 4}  .505979{col 94}{space 3} .8394563
{txt}{space 35}afgh {c |}{col 41}{res}{space 2} .9050923{col 53}{space 2} .1144676{col 64}{space 1}    7.91{col 73}{space 3}0.000{col 81}{space 4} .6807399{col 94}{space 3} 1.129445
{txt}{space 27}imf_tax_lag1 {c |}{col 41}{res}{space 2} -.011032{col 53}{space 2} .0036295{col 64}{space 1}   -3.04{col 73}{space 3}0.002{col 81}{space 4}-.0181456{col 94}{space 3}-.0039184
{txt}{space 17}1.rebels_combined_lag1 {c |}{col 41}{res}{space 2} .1381789{col 53}{space 2} .0649387{col 64}{space 1}    2.13{col 73}{space 3}0.033{col 81}{space 4} .0109014{col 94}{space 3} .2654563
{txt}{space 23}ideal_point_lag1 {c |}{col 41}{res}{space 2} .1315724{col 53}{space 2}  .048889{col 64}{space 1}    2.69{col 73}{space 3}0.007{col 81}{space 4} .0357517{col 94}{space 3} .2273931
{txt}{space 39} {c |}
rebels_combined_lag1#c.ideal_point_lag1 {c |}
{space 37}1  {c |}{col 41}{res}{space 2} .1717971{col 53}{space 2} .0862303{col 64}{space 1}    1.99{col 73}{space 3}0.046{col 81}{space 4} .0027888{col 94}{space 3} .3408053
{txt}{space 39} {c |}
{space 34}_cons {c |}{col 41}{res}{space 2} 1.161115{col 53}{space 2} .1404489{col 64}{space 1}    8.27{col 73}{space 3}0.000{col 81}{space 4} .8858399{col 94}{space 3} 1.436389
{txt}{hline 40}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
                                sigma_u {c |} {res}         0
                                {txt}sigma_e {c |} {res} 1.0036751
                                    {txt}rho {c |} {res}         0{txt}   (fraction of variance due to u_i)
{hline 40}{c BT}{hline 64}

{com}. outreg2 using tableA3.xls, append ctitle(Trainees) label
{txt}{browse `"tableA3.xls"'}
{browse `"C:\Users\Theodore McLauchlin\Dropbox\Military training - selection paper\ISQ Submission\Final submission"' :dir}{com} : {txt}{stata `"seeout using "tableA3.txt", label"':seeout}

{com}. xtreg log_trainexp coup_suc_lag1 log_trainexp_lag1 iraq afgh imf_tax_lag1  rebels_combined_lag1##c.ideal_point_lag1  if NATOAndOthers==0 & year>=1999 & regforce==1, re vce(robust)
{res}
{txt}Random-effects GLS regression                   Number of obs      = {res}     2592
{txt}Group variable: {res}ccode                           {txt}Number of groups   = {res}      150

{txt}R-sq:  within  = {res}0.2418                         {txt}Obs per group: min = {res}        4
{txt}       between = {res}0.9752                                        {txt}avg = {res}     17.3
{txt}       overall = {res}0.6809                                        {txt}max = {res}       19

                                                {txt}{help j_robustsingular##|_new:Wald chi2(7)}{col 68}={col 70}{res}        .
{txt}corr(u_i, X)   = {res}0{txt} (assumed)                    Prob > chi2        =    {res}     .

{txt}{ralign 105:(Std. Err. adjusted for {res:150} clusters in ccode)}
{hline 40}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 41}{c |}{col 53}    Robust
{col 1}                           log_trainexp{col 41}{c |}      Coef.{col 53}   Std. Err.{col 65}      z{col 73}   P>|z|{col 81}     [95% Con{col 94}f. Interval]
{hline 40}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 26}coup_suc_lag1 {c |}{col 41}{res}{space 2}-2.145123{col 53}{space 2} .9675893{col 64}{space 1}   -2.22{col 73}{space 3}0.027{col 81}{space 4}-4.041563{col 94}{space 3}-.2486825
{txt}{space 22}log_trainexp_lag1 {c |}{col 41}{res}{space 2} .7695931{col 53}{space 2} .0310043{col 64}{space 1}   24.82{col 73}{space 3}0.000{col 81}{space 4} .7088259{col 94}{space 3} .8303604
{txt}{space 35}iraq {c |}{col 41}{res}{space 2}   1.3524{col 53}{space 2} .2040303{col 64}{space 1}    6.63{col 73}{space 3}0.000{col 81}{space 4} .9525083{col 94}{space 3} 1.752292
{txt}{space 35}afgh {c |}{col 41}{res}{space 2} 1.543408{col 53}{space 2} .2120187{col 64}{space 1}    7.28{col 73}{space 3}0.000{col 81}{space 4} 1.127859{col 94}{space 3} 1.958957
{txt}{space 27}imf_tax_lag1 {c |}{col 41}{res}{space 2}-.0133845{col 53}{space 2} .0088513{col 64}{space 1}   -1.51{col 73}{space 3}0.130{col 81}{space 4}-.0307327{col 94}{space 3} .0039636
{txt}{space 17}1.rebels_combined_lag1 {c |}{col 41}{res}{space 2} .0798827{col 53}{space 2}  .142956{col 64}{space 1}    0.56{col 73}{space 3}0.576{col 81}{space 4}-.2003059{col 94}{space 3} .3600714
{txt}{space 23}ideal_point_lag1 {c |}{col 41}{res}{space 2} .1987612{col 53}{space 2} .1074793{col 64}{space 1}    1.85{col 73}{space 3}0.064{col 81}{space 4}-.0118944{col 94}{space 3} .4094168
{txt}{space 39} {c |}
rebels_combined_lag1#c.ideal_point_lag1 {c |}
{space 37}1  {c |}{col 41}{res}{space 2} .3683975{col 53}{space 2} .2197178{col 64}{space 1}    1.68{col 73}{space 3}0.094{col 81}{space 4}-.0622414{col 94}{space 3} .7990364
{txt}{space 39} {c |}
{space 34}_cons {c |}{col 41}{res}{space 2}  3.45617{col 53}{space 2} .4609523{col 64}{space 1}    7.50{col 73}{space 3}0.000{col 81}{space 4}  2.55272{col 94}{space 3}  4.35962
{txt}{hline 40}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
                                sigma_u {c |} {res}         0
                                {txt}sigma_e {c |} {res} 1.8255579
                                    {txt}rho {c |} {res}         0{txt}   (fraction of variance due to u_i)
{hline 40}{c BT}{hline 64}

{com}. outreg2 using tableA3.xls, append ctitle(Expenditures) label
{txt}{browse `"tableA3.xls"'}
{browse `"C:\Users\Theodore McLauchlin\Dropbox\Military training - selection paper\ISQ Submission\Final submission"' :dir}{com} : {txt}{stata `"seeout using "tableA3.txt", label"':seeout}

{com}. xtreg log_trainees coup_suc_lag1 log_trainees_lag1 iraq afgh imf_tax_lag1 islamist_combined_lag1##c.ideal_point_lag1 if NATOAndOthers==0 & year>=1999 & regforce==1, re vce(robust)
{res}
{txt}Random-effects GLS regression                   Number of obs      = {res}     2592
{txt}Group variable: {res}ccode                           {txt}Number of groups   = {res}      150

{txt}R-sq:  within  = {res}0.3095                         {txt}Obs per group: min = {res}        4
{txt}       between = {res}0.9835                                        {txt}avg = {res}     17.3
{txt}       overall = {res}0.7141                                        {txt}max = {res}       19

                                                {txt}{help j_robustsingular##|_new:Wald chi2(7)}{col 68}={col 70}{res}        .
{txt}corr(u_i, X)   = {res}0{txt} (assumed)                    Prob > chi2        =    {res}     .

{txt}{ralign 107:(Std. Err. adjusted for {res:150} clusters in ccode)}
{hline 42}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 43}{c |}{col 55}    Robust
{col 1}                             log_trainees{col 43}{c |}      Coef.{col 55}   Std. Err.{col 67}      z{col 75}   P>|z|{col 83}     [95% Con{col 96}f. Interval]
{hline 42}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 28}coup_suc_lag1 {c |}{col 43}{res}{space 2}-.6048806{col 55}{space 2} .4461231{col 66}{space 1}   -1.36{col 75}{space 3}0.175{col 83}{space 4}-1.479266{col 96}{space 3} .2695046
{txt}{space 24}log_trainees_lag1 {c |}{col 43}{res}{space 2} .8019963{col 55}{space 2} .0206189{col 66}{space 1}   38.90{col 75}{space 3}0.000{col 83}{space 4}  .761584{col 96}{space 3} .8424086
{txt}{space 37}iraq {c |}{col 43}{res}{space 2} .5674815{col 55}{space 2} .0792778{col 66}{space 1}    7.16{col 75}{space 3}0.000{col 83}{space 4} .4120999{col 96}{space 3} .7228631
{txt}{space 37}afgh {c |}{col 43}{res}{space 2} .8072795{col 55}{space 2} .1065406{col 66}{space 1}    7.58{col 75}{space 3}0.000{col 83}{space 4} .5984638{col 96}{space 3} 1.016095
{txt}{space 29}imf_tax_lag1 {c |}{col 43}{res}{space 2}-.0115303{col 55}{space 2} .0034585{col 66}{space 1}   -3.33{col 75}{space 3}0.001{col 83}{space 4}-.0183088{col 96}{space 3}-.0047518
{txt}{space 17}1.islamist_combined_lag1 {c |}{col 43}{res}{space 2}  .139968{col 55}{space 2} .0649944{col 66}{space 1}    2.15{col 75}{space 3}0.031{col 83}{space 4} .0125812{col 96}{space 3} .2673547
{txt}{space 25}ideal_point_lag1 {c |}{col 43}{res}{space 2} .1993817{col 55}{space 2} .0512641{col 66}{space 1}    3.89{col 75}{space 3}0.000{col 83}{space 4}  .098906{col 96}{space 3} .2998574
{txt}{space 41} {c |}
islamist_combined_lag1#c.ideal_point_lag1 {c |}
{space 39}1  {c |}{col 43}{res}{space 2} .0180674{col 55}{space 2} .0815785{col 66}{space 1}    0.22{col 75}{space 3}0.825{col 83}{space 4}-.1418235{col 96}{space 3} .1779583
{txt}{space 41} {c |}
{space 36}_cons {c |}{col 43}{res}{space 2}  1.18726{col 55}{space 2} .1419766{col 66}{space 1}    8.36{col 75}{space 3}0.000{col 83}{space 4} .9089906{col 96}{space 3} 1.465529
{txt}{hline 42}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
                                  sigma_u {c |} {res}         0
                                  {txt}sigma_e {c |} {res} 1.0041473
                                      {txt}rho {c |} {res}         0{txt}   (fraction of variance due to u_i)
{hline 42}{c BT}{hline 64}

{com}. outreg2 using tableA3.xls, append ctitle(Trainees) label
{txt}{browse `"tableA3.xls"'}
{browse `"C:\Users\Theodore McLauchlin\Dropbox\Military training - selection paper\ISQ Submission\Final submission"' :dir}{com} : {txt}{stata `"seeout using "tableA3.txt", label"':seeout}

{com}. xtreg log_trainexp coup_suc_lag1 log_trainexp_lag1 iraq afgh imf_tax_lag1  islamist_combined_lag1##c.ideal_point_lag1  if NATOAndOthers==0 & year>=1999  & regforce==1, re vce(robust)
{res}
{txt}Random-effects GLS regression                   Number of obs      = {res}     2592
{txt}Group variable: {res}ccode                           {txt}Number of groups   = {res}      150

{txt}R-sq:  within  = {res}0.2413                         {txt}Obs per group: min = {res}        4
{txt}       between = {res}0.9773                                        {txt}avg = {res}     17.3
{txt}       overall = {res}0.6800                                        {txt}max = {res}       19

                                                {txt}{help j_robustsingular##|_new:Wald chi2(7)}{col 68}={col 70}{res}        .
{txt}corr(u_i, X)   = {res}0{txt} (assumed)                    Prob > chi2        =    {res}     .

{txt}{ralign 107:(Std. Err. adjusted for {res:150} clusters in ccode)}
{hline 42}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 43}{c |}{col 55}    Robust
{col 1}                             log_trainexp{col 43}{c |}      Coef.{col 55}   Std. Err.{col 67}      z{col 75}   P>|z|{col 83}     [95% Con{col 96}f. Interval]
{hline 42}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 28}coup_suc_lag1 {c |}{col 43}{res}{space 2}-2.108215{col 55}{space 2} .9797571{col 66}{space 1}   -2.15{col 75}{space 3}0.031{col 83}{space 4}-4.028503{col 96}{space 3}-.1879261
{txt}{space 24}log_trainexp_lag1 {c |}{col 43}{res}{space 2} .7738714{col 55}{space 2} .0315836{col 66}{space 1}   24.50{col 75}{space 3}0.000{col 83}{space 4} .7119687{col 96}{space 3}  .835774
{txt}{space 37}iraq {c |}{col 43}{res}{space 2} 1.134586{col 55}{space 2} .2016216{col 66}{space 1}    5.63{col 75}{space 3}0.000{col 83}{space 4} .7394152{col 96}{space 3} 1.529758
{txt}{space 37}afgh {c |}{col 43}{res}{space 2} 1.337902{col 55}{space 2} .2094701{col 66}{space 1}    6.39{col 75}{space 3}0.000{col 83}{space 4} .9273478{col 96}{space 3} 1.748455
{txt}{space 29}imf_tax_lag1 {c |}{col 43}{res}{space 2}-.0136941{col 55}{space 2} .0083738{col 66}{space 1}   -1.64{col 75}{space 3}0.102{col 83}{space 4}-.0301064{col 96}{space 3} .0027182
{txt}{space 17}1.islamist_combined_lag1 {c |}{col 43}{res}{space 2} .0862365{col 55}{space 2}  .144356{col 66}{space 1}    0.60{col 75}{space 3}0.550{col 83}{space 4} -.196696{col 96}{space 3} .3691691
{txt}{space 25}ideal_point_lag1 {c |}{col 43}{res}{space 2} .3737064{col 55}{space 2} .1113417{col 66}{space 1}    3.36{col 75}{space 3}0.001{col 83}{space 4} .1554807{col 96}{space 3}  .591932
{txt}{space 41} {c |}
islamist_combined_lag1#c.ideal_point_lag1 {c |}
{space 39}1  {c |}{col 43}{res}{space 2}-.0323026{col 55}{space 2}  .205372{col 66}{space 1}   -0.16{col 75}{space 3}0.875{col 83}{space 4}-.4348243{col 96}{space 3} .3702191
{txt}{space 41} {c |}
{space 36}_cons {c |}{col 43}{res}{space 2} 3.405306{col 55}{space 2} .4731536{col 66}{space 1}    7.20{col 75}{space 3}0.000{col 83}{space 4} 2.477942{col 96}{space 3}  4.33267
{txt}{hline 42}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
                                  sigma_u {c |} {res}         0
                                  {txt}sigma_e {c |} {res} 1.8262316
                                      {txt}rho {c |} {res}         0{txt}   (fraction of variance due to u_i)
{hline 42}{c BT}{hline 64}

{com}. outreg2 using tableA3.xls, append ctitle(Expenditures) label
{txt}{browse `"tableA3.xls"'}
{browse `"C:\Users\Theodore McLauchlin\Dropbox\Military training - selection paper\ISQ Submission\Final submission"' :dir}{com} : {txt}{stata `"seeout using "tableA3.txt", label"':seeout}

{com}. //norm transmission
. xtreg log_trainees coup_suc_lag1 log_trainees_lag1 iraq afgh demtrans_last5_ert v2x_regime_lag1 if NATOAndOthers==0 & year>=1999  & regforce==1, re vce(robust)
{res}
{txt}Random-effects GLS regression                   Number of obs      = {res}     2673
{txt}Group variable: {res}ccode                           {txt}Number of groups   = {res}      149

{txt}R-sq:  within  = {res}0.3634                         {txt}Obs per group: min = {res}        4
{txt}       between = {res}0.9877                                        {txt}avg = {res}     17.9
{txt}       overall = {res}0.7271                                        {txt}max = {res}       19

                                                {txt}{help j_robustsingular##|_new:Wald chi2(5)}{col 68}={col 70}{res}        .
{txt}corr(u_i, X)   = {res}0{txt} (assumed)                    Prob > chi2        =    {res}     .

{txt}{ralign 84:(Std. Err. adjusted for {res:149} clusters in ccode)}
{hline 19}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 20}{c |}{col 32}    Robust
{col 1}      log_trainees{col 20}{c |}      Coef.{col 32}   Std. Err.{col 44}      z{col 52}   P>|z|{col 60}     [95% Con{col 73}f. Interval]
{hline 19}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 5}coup_suc_lag1 {c |}{col 20}{res}{space 2} -.563923{col 32}{space 2} .4397353{col 43}{space 1}   -1.28{col 52}{space 3}0.200{col 60}{space 4}-1.425788{col 73}{space 3} .2979424
{txt}{space 1}log_trainees_lag1 {c |}{col 20}{res}{space 2} .8160552{col 32}{space 2} .0181774{col 43}{space 1}   44.89{col 52}{space 3}0.000{col 60}{space 4} .7804281{col 73}{space 3} .8516822
{txt}{space 14}iraq {c |}{col 20}{res}{space 2} .6397429{col 32}{space 2}  .048422{col 43}{space 1}   13.21{col 52}{space 3}0.000{col 60}{space 4} .5448374{col 73}{space 3} .7346483
{txt}{space 14}afgh {c |}{col 20}{res}{space 2} .9468259{col 32}{space 2} .0725225{col 43}{space 1}   13.06{col 52}{space 3}0.000{col 60}{space 4} .8046844{col 73}{space 3} 1.088967
{txt}demtrans_last5_ert {c |}{col 20}{res}{space 2} .1818617{col 32}{space 2} .0512861{col 43}{space 1}    3.55{col 52}{space 3}0.000{col 60}{space 4} .0813428{col 73}{space 3} .2823805
{txt}{space 3}v2x_regime_lag1 {c |}{col 20}{res}{space 2} .0714746{col 32}{space 2} .0304706{col 43}{space 1}    2.35{col 52}{space 3}0.019{col 60}{space 4} .0117532{col 73}{space 3} .1311959
{txt}{space 13}_cons {c |}{col 20}{res}{space 2} .7354741{col 32}{space 2} .1039755{col 43}{space 1}    7.07{col 52}{space 3}0.000{col 60}{space 4} .5316858{col 73}{space 3} .9392624
{txt}{hline 19}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
           sigma_u {c |} {res}         0
           {txt}sigma_e {c |} {res} 1.0525373
               {txt}rho {c |} {res}         0{txt}   (fraction of variance due to u_i)
{hline 19}{c BT}{hline 64}

{com}. outreg2 using tableA3.xls, append ctitle(Trainees) label
{txt}{browse `"tableA3.xls"'}
{browse `"C:\Users\Theodore McLauchlin\Dropbox\Military training - selection paper\ISQ Submission\Final submission"' :dir}{com} : {txt}{stata `"seeout using "tableA3.txt", label"':seeout}

{com}. xtreg log_trainexp coup_suc_lag1 log_trainexp_lag1 iraq afgh demtrans_last5_ert v2x_regime_lag1  if NATOAndOthers==0 & year>=1999 & regforce==1, re vce(robust)
{res}
{txt}Random-effects GLS regression                   Number of obs      = {res}     2673
{txt}Group variable: {res}ccode                           {txt}Number of groups   = {res}      149

{txt}R-sq:  within  = {res}0.3285                         {txt}Obs per group: min = {res}        4
{txt}       between = {res}0.9848                                        {txt}avg = {res}     17.9
{txt}       overall = {res}0.7208                                        {txt}max = {res}       19

                                                {txt}{help j_robustsingular##|_new:Wald chi2(5)}{col 68}={col 70}{res}        .
{txt}corr(u_i, X)   = {res}0{txt} (assumed)                    Prob > chi2        =    {res}     .

{txt}{ralign 84:(Std. Err. adjusted for {res:149} clusters in ccode)}
{hline 19}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 20}{c |}{col 32}    Robust
{col 1}      log_trainexp{col 20}{c |}      Coef.{col 32}   Std. Err.{col 44}      z{col 52}   P>|z|{col 60}     [95% Con{col 73}f. Interval]
{hline 19}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 5}coup_suc_lag1 {c |}{col 20}{res}{space 2}-1.674984{col 32}{space 2} 1.090098{col 43}{space 1}   -1.54{col 52}{space 3}0.124{col 60}{space 4}-3.811537{col 73}{space 3} .4615694
{txt}{space 1}log_trainexp_lag1 {c |}{col 20}{res}{space 2} .8017818{col 32}{space 2} .0270623{col 43}{space 1}   29.63{col 52}{space 3}0.000{col 60}{space 4} .7487408{col 73}{space 3} .8548228
{txt}{space 14}iraq {c |}{col 20}{res}{space 2} 1.023901{col 32}{space 2}  .080349{col 43}{space 1}   12.74{col 52}{space 3}0.000{col 60}{space 4} .8664196{col 73}{space 3} 1.181382
{txt}{space 14}afgh {c |}{col 20}{res}{space 2} 1.327253{col 32}{space 2} .0892032{col 43}{space 1}   14.88{col 52}{space 3}0.000{col 60}{space 4} 1.152418{col 73}{space 3} 1.502088
{txt}demtrans_last5_ert {c |}{col 20}{res}{space 2} .3629389{col 32}{space 2} .1133634{col 43}{space 1}    3.20{col 52}{space 3}0.001{col 60}{space 4} .1407507{col 73}{space 3} .5851271
{txt}{space 3}v2x_regime_lag1 {c |}{col 20}{res}{space 2} .1648407{col 32}{space 2} .0655629{col 43}{space 1}    2.51{col 52}{space 3}0.012{col 60}{space 4} .0363398{col 73}{space 3} .2933415
{txt}{space 13}_cons {c |}{col 20}{res}{space 2} 2.332122{col 32}{space 2} .4051428{col 43}{space 1}    5.76{col 52}{space 3}0.000{col 60}{space 4} 1.538057{col 73}{space 3} 3.126188
{txt}{hline 19}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
           sigma_u {c |} {res}         0
           {txt}sigma_e {c |} {res} 2.0039874
               {txt}rho {c |} {res}         0{txt}   (fraction of variance due to u_i)
{hline 19}{c BT}{hline 64}

{com}. outreg2 using tableA3.xls, append ctitle(Expenditures) label
{txt}{browse `"tableA3.xls"'}
{browse `"C:\Users\Theodore McLauchlin\Dropbox\Military training - selection paper\ISQ Submission\Final submission"' :dir}{com} : {txt}{stata `"seeout using "tableA3.txt", label"':seeout}

{com}. //full model
. xtreg log_trainees coup_suc_lag1 log_trainees_lag1 iraq afgh threat_lag1 c.mingtidist_lag1##c.ideal_point_lag1 imf_tax_lag1  rebels_combined_lag1##c.ideal_point_lag1 demtrans_last5_ert v2x_regime_lag1 log_wb_pop_lag1 if NATOAndOthers==0 & year>=1999  & regforce==1, re vce(robust)
{txt}note: ideal_point_lag1 omitted because of collinearity
{res}
{txt}Random-effects GLS regression                   Number of obs      = {res}     2479
{txt}Group variable: {res}ccode                           {txt}Number of groups   = {res}      144

{txt}R-sq:  within  = {res}0.3204                         {txt}Obs per group: min = {res}        4
{txt}       between = {res}0.9732                                        {txt}avg = {res}     17.2
{txt}       overall = {res}0.7226                                        {txt}max = {res}       19

                                                {txt}{help j_robustsingular##|_new:Wald chi2(13)}{col 68}={col 70}{res}        .
{txt}corr(u_i, X)   = {res}0{txt} (assumed)                    Prob > chi2        =    {res}     .

{txt}{ralign 105:(Std. Err. adjusted for {res:144} clusters in ccode)}
{hline 40}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 41}{c |}{col 53}    Robust
{col 1}                           log_trainees{col 41}{c |}      Coef.{col 53}   Std. Err.{col 65}      z{col 73}   P>|z|{col 81}     [95% Con{col 94}f. Interval]
{hline 40}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 26}coup_suc_lag1 {c |}{col 41}{res}{space 2}-.6858404{col 53}{space 2} .4216253{col 64}{space 1}   -1.63{col 73}{space 3}0.104{col 81}{space 4}-1.512211{col 94}{space 3} .1405301
{txt}{space 22}log_trainees_lag1 {c |}{col 41}{res}{space 2} .7642566{col 53}{space 2} .0231432{col 64}{space 1}   33.02{col 73}{space 3}0.000{col 81}{space 4} .7188969{col 94}{space 3} .8096164
{txt}{space 35}iraq {c |}{col 41}{res}{space 2} .7271253{col 53}{space 2} .0959727{col 64}{space 1}    7.58{col 73}{space 3}0.000{col 81}{space 4} .5390223{col 94}{space 3} .9152282
{txt}{space 35}afgh {c |}{col 41}{res}{space 2} 1.045765{col 53}{space 2} .1308667{col 64}{space 1}    7.99{col 73}{space 3}0.000{col 81}{space 4} .7892709{col 94}{space 3} 1.302259
{txt}{space 28}threat_lag1 {c |}{col 41}{res}{space 2}-.8775866{col 53}{space 2} .1303407{col 64}{space 1}   -6.73{col 73}{space 3}0.000{col 81}{space 4} -1.13305{col 94}{space 3}-.6221235
{txt}{space 24}mingtidist_lag1 {c |}{col 41}{res}{space 2} .0403096{col 53}{space 2} .0202176{col 64}{space 1}    1.99{col 73}{space 3}0.046{col 81}{space 4} .0006838{col 94}{space 3} .0799354
{txt}{space 23}ideal_point_lag1 {c |}{col 41}{res}{space 2} .0161279{col 53}{space 2} .0734892{col 64}{space 1}    0.22{col 73}{space 3}0.826{col 81}{space 4}-.1279083{col 94}{space 3} .1601641
{txt}{space 39} {c |}
{space 3}c.mingtidist_lag1#c.ideal_point_lag1 {c |}{col 41}{res}{space 2}  .070397{col 53}{space 2} .0226221{col 64}{space 1}    3.11{col 73}{space 3}0.002{col 81}{space 4} .0260585{col 94}{space 3} .1147355
{txt}{space 39} {c |}
{space 27}imf_tax_lag1 {c |}{col 41}{res}{space 2} -.009325{col 53}{space 2} .0038442{col 64}{space 1}   -2.43{col 73}{space 3}0.015{col 81}{space 4}-.0168595{col 94}{space 3}-.0017905
{txt}{space 17}1.rebels_combined_lag1 {c |}{col 41}{res}{space 2} .0194569{col 53}{space 2} .0660776{col 64}{space 1}    0.29{col 73}{space 3}0.768{col 81}{space 4}-.1100528{col 94}{space 3} .1489665
{txt}{space 23}ideal_point_lag1 {c |}{col 41}{res}{space 2}        0{col 53}{txt}  (omitted)
{space 39} {c |}
rebels_combined_lag1#c.ideal_point_lag1 {c |}
{space 37}1  {c |}{col 41}{res}{space 2} .2124646{col 53}{space 2} .0831754{col 64}{space 1}    2.55{col 73}{space 3}0.011{col 81}{space 4} .0494437{col 94}{space 3} .3754854
{txt}{space 39} {c |}
{space 21}demtrans_last5_ert {c |}{col 41}{res}{space 2} .1400306{col 53}{space 2} .0541884{col 64}{space 1}    2.58{col 73}{space 3}0.010{col 81}{space 4} .0338233{col 94}{space 3} .2462378
{txt}{space 24}v2x_regime_lag1 {c |}{col 41}{res}{space 2} .0144654{col 53}{space 2} .0359677{col 64}{space 1}    0.40{col 73}{space 3}0.688{col 81}{space 4}  -.05603{col 94}{space 3} .0849608
{txt}{space 24}log_wb_pop_lag1 {c |}{col 41}{res}{space 2} .1026138{col 53}{space 2} .0159332{col 64}{space 1}    6.44{col 73}{space 3}0.000{col 81}{space 4} .0713853{col 94}{space 3} .1338422
{txt}{space 34}_cons {c |}{col 41}{res}{space 2}-.3632081{col 53}{space 2} .2534469{col 64}{space 1}   -1.43{col 73}{space 3}0.152{col 81}{space 4}-.8599549{col 94}{space 3} .1335387
{txt}{hline 40}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
                                sigma_u {c |} {res}         0
                                {txt}sigma_e {c |} {res} 1.0080876
                                    {txt}rho {c |} {res}         0{txt}   (fraction of variance due to u_i)
{hline 40}{c BT}{hline 64}

{com}. outreg2 using tableA3.xls, append ctitle(Trainees) label
{txt}{browse `"tableA3.xls"'}
{browse `"C:\Users\Theodore McLauchlin\Dropbox\Military training - selection paper\ISQ Submission\Final submission"' :dir}{com} : {txt}{stata `"seeout using "tableA3.txt", label"':seeout}

{com}. xtreg log_trainexp coup_suc_lag1 log_trainexp_lag1 iraq afgh threat_lag1 c.mingtidist_lag1##c.ideal_point_lag1 imf_tax_lag1  rebels_combined_lag1##c.ideal_point_lag1 demtrans_last5_ert v2x_regime_lag1 log_wb_pop_lag1  if NATOAndOthers==0 & year>=1999  & regforce==1, re vce(robust)
{txt}note: ideal_point_lag1 omitted because of collinearity
{res}
{txt}Random-effects GLS regression                   Number of obs      = {res}     2479
{txt}Group variable: {res}ccode                           {txt}Number of groups   = {res}      144

{txt}R-sq:  within  = {res}0.2495                         {txt}Obs per group: min = {res}        4
{txt}       between = {res}0.9660                                        {txt}avg = {res}     17.2
{txt}       overall = {res}0.6923                                        {txt}max = {res}       19

                                                {txt}{help j_robustsingular##|_new:Wald chi2(13)}{col 68}={col 70}{res}        .
{txt}corr(u_i, X)   = {res}0{txt} (assumed)                    Prob > chi2        =    {res}     .

{txt}{ralign 105:(Std. Err. adjusted for {res:144} clusters in ccode)}
{hline 40}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 41}{c |}{col 53}    Robust
{col 1}                           log_trainexp{col 41}{c |}      Coef.{col 53}   Std. Err.{col 65}      z{col 73}   P>|z|{col 81}     [95% Con{col 94}f. Interval]
{hline 40}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 26}coup_suc_lag1 {c |}{col 41}{res}{space 2}-2.246067{col 53}{space 2}   .94478{col 64}{space 1}   -2.38{col 73}{space 3}0.017{col 81}{space 4}-4.097801{col 94}{space 3}-.3943318
{txt}{space 22}log_trainexp_lag1 {c |}{col 41}{res}{space 2} .7400352{col 53}{space 2} .0358295{col 64}{space 1}   20.65{col 73}{space 3}0.000{col 81}{space 4} .6698107{col 94}{space 3} .8102596
{txt}{space 35}iraq {c |}{col 41}{res}{space 2} 1.356052{col 53}{space 2}  .228612{col 64}{space 1}    5.93{col 73}{space 3}0.000{col 81}{space 4} .9079802{col 94}{space 3} 1.804123
{txt}{space 35}afgh {c |}{col 41}{res}{space 2} 1.593285{col 53}{space 2} .2421912{col 64}{space 1}    6.58{col 73}{space 3}0.000{col 81}{space 4} 1.118599{col 94}{space 3} 2.067971
{txt}{space 28}threat_lag1 {c |}{col 41}{res}{space 2}-2.157995{col 53}{space 2} .5032271{col 64}{space 1}   -4.29{col 73}{space 3}0.000{col 81}{space 4}-3.144302{col 94}{space 3}-1.171688
{txt}{space 24}mingtidist_lag1 {c |}{col 41}{res}{space 2} .0824117{col 53}{space 2}  .041289{col 64}{space 1}    2.00{col 73}{space 3}0.046{col 81}{space 4} .0014868{col 94}{space 3} .1633367
{txt}{space 23}ideal_point_lag1 {c |}{col 41}{res}{space 2} .0013451{col 53}{space 2} .1702406{col 64}{space 1}    0.01{col 73}{space 3}0.994{col 81}{space 4}-.3323204{col 94}{space 3} .3350105
{txt}{space 39} {c |}
{space 3}c.mingtidist_lag1#c.ideal_point_lag1 {c |}{col 41}{res}{space 2} .1429073{col 53}{space 2} .0556954{col 64}{space 1}    2.57{col 73}{space 3}0.010{col 81}{space 4} .0337464{col 94}{space 3} .2520683
{txt}{space 39} {c |}
{space 27}imf_tax_lag1 {c |}{col 41}{res}{space 2}-.0089135{col 53}{space 2} .0090961{col 64}{space 1}   -0.98{col 73}{space 3}0.327{col 81}{space 4}-.0267416{col 94}{space 3} .0089146
{txt}{space 17}1.rebels_combined_lag1 {c |}{col 41}{res}{space 2}-.0908642{col 53}{space 2} .1302585{col 64}{space 1}   -0.70{col 73}{space 3}0.485{col 81}{space 4}-.3461662{col 94}{space 3} .1644377
{txt}{space 23}ideal_point_lag1 {c |}{col 41}{res}{space 2}        0{col 53}{txt}  (omitted)
{space 39} {c |}
rebels_combined_lag1#c.ideal_point_lag1 {c |}
{space 37}1  {c |}{col 41}{res}{space 2}  .360232{col 53}{space 2} .2003576{col 64}{space 1}    1.80{col 73}{space 3}0.072{col 81}{space 4}-.0324616{col 94}{space 3} .7529256
{txt}{space 39} {c |}
{space 21}demtrans_last5_ert {c |}{col 41}{res}{space 2} .2393516{col 53}{space 2} .1183702{col 64}{space 1}    2.02{col 73}{space 3}0.043{col 81}{space 4} .0073502{col 94}{space 3}  .471353
{txt}{space 24}v2x_regime_lag1 {c |}{col 41}{res}{space 2}-.0217782{col 53}{space 2} .0794679{col 64}{space 1}   -0.27{col 73}{space 3}0.784{col 81}{space 4}-.1775324{col 94}{space 3} .1339759
{txt}{space 24}log_wb_pop_lag1 {c |}{col 41}{res}{space 2} .1387675{col 53}{space 2} .0394368{col 64}{space 1}    3.52{col 73}{space 3}0.000{col 81}{space 4} .0614728{col 94}{space 3} .2160622
{txt}{space 34}_cons {c |}{col 41}{res}{space 2} 1.529557{col 53}{space 2} .6779602{col 64}{space 1}    2.26{col 73}{space 3}0.024{col 81}{space 4} .2007792{col 94}{space 3} 2.858334
{txt}{hline 40}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
                                sigma_u {c |} {res}         0
                                {txt}sigma_e {c |} {res} 1.8438426
                                    {txt}rho {c |} {res}         0{txt}   (fraction of variance due to u_i)
{hline 40}{c BT}{hline 64}

{com}. outreg2 using tableA3.xls, append ctitle(Expenditures) label
{txt}{browse `"tableA3.xls"'}
{browse `"C:\Users\Theodore McLauchlin\Dropbox\Military training - selection paper\ISQ Submission\Final submission"' :dir}{com} : {txt}{stata `"seeout using "tableA3.txt", label"':seeout}

{com}. 
. 
. //appendix table 4 -- with country fixed effects
. //external threats
. xtreg log_trainees coup_suc_lag1 log_trainees_lag1 threat_lag1 c.mingtidist_lag1##c.ideal_point_lag1 if NATOAndOthers==0 & year>=1999 & iraqaf==0 & regforce==1, fe vce(robust)

{txt}Fixed-effects (within) regression               Number of obs      = {res}     2690
{txt}Group variable: {res}ccode                           {txt}Number of groups   = {res}      151

{txt}R-sq:  within  = {res}0.3330                         {txt}Obs per group: min = {res}        4
{txt}       between = {res}0.7924                                        {txt}avg = {res}     17.8
{txt}       overall = {res}0.6459                                        {txt}max = {res}       19

                                                {txt}F({res}6{txt},{res}150{txt})           = {res}    62.98
{txt}corr(u_i, Xb)  = {res}0.4185                         {txt}Prob > F           =    {res}0.0000

{txt}{ralign 102:(Std. Err. adjusted for {res:151} clusters in ccode)}
{hline 37}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 38}{c |}{col 50}    Robust
{col 1}                        log_trainees{col 38}{c |}      Coef.{col 50}   Std. Err.{col 62}      t{col 70}   P>|t|{col 78}     [95% Con{col 91}f. Interval]
{hline 37}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 23}coup_suc_lag1 {c |}{col 38}{res}{space 2}-.8475403{col 50}{space 2} .4371386{col 61}{space 1}   -1.94{col 70}{space 3}0.054{col 78}{space 4}-1.711285{col 91}{space 3} .0162042
{txt}{space 19}log_trainees_lag1 {c |}{col 38}{res}{space 2} .5026201{col 50}{space 2} .0304492{col 61}{space 1}   16.51{col 70}{space 3}0.000{col 78}{space 4} .4424553{col 91}{space 3} .5627848
{txt}{space 25}threat_lag1 {c |}{col 38}{res}{space 2}-.4530762{col 50}{space 2} .2277743{col 61}{space 1}   -1.99{col 70}{space 3}0.049{col 78}{space 4}-.9031366{col 91}{space 3}-.0030157
{txt}{space 21}mingtidist_lag1 {c |}{col 38}{res}{space 2} .0191207{col 50}{space 2}  .035619{col 61}{space 1}    0.54{col 70}{space 3}0.592{col 78}{space 4}-.0512591{col 91}{space 3} .0895005
{txt}{space 20}ideal_point_lag1 {c |}{col 38}{res}{space 2} .6770711{col 50}{space 2} .1422695{col 61}{space 1}    4.76{col 70}{space 3}0.000{col 78}{space 4}   .39596{col 91}{space 3} .9581821
{txt}{space 36} {c |}
c.mingtidist_lag1#c.ideal_point_lag1 {c |}{col 38}{res}{space 2} .0668002{col 50}{space 2} .0370577{col 61}{space 1}    1.80{col 70}{space 3}0.073{col 78}{space 4}-.0064223{col 91}{space 3} .1400228
{txt}{space 36} {c |}
{space 31}_cons {c |}{col 38}{res}{space 2} 2.549255{col 50}{space 2} .1511729{col 61}{space 1}   16.86{col 70}{space 3}0.000{col 78}{space 4} 2.250552{col 91}{space 3} 2.847959
{txt}{hline 37}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
                             sigma_u {c |} {res} .84394063
                             {txt}sigma_e {c |} {res} .99534441
                                 {txt}rho {c |} {res} .41823738{txt}   (fraction of variance due to u_i)
{hline 37}{c BT}{hline 64}

{com}. outreg2 using tableA4.xls, replace title(Cross-section time-series results, with country fixed effects) ctitle(Trainees) label
{txt}{browse `"tableA4.xls"'}
{browse `"C:\Users\Theodore McLauchlin\Dropbox\Military training - selection paper\ISQ Submission\Final submission"' :dir}{com} : {txt}{stata `"seeout using "tableA4.txt", label"':seeout}

{com}. xtreg log_trainexp coup_suc_lag1 log_trainexp_lag1 threat_lag1 c.mingtidist_lag1##c.ideal_point_lag1 if NATOAndOthers==0 & year>=1999 & iraqaf==0 & regforce==1, fe vce(robust)

{txt}Fixed-effects (within) regression               Number of obs      = {res}     2690
{txt}Group variable: {res}ccode                           {txt}Number of groups   = {res}      151

{txt}R-sq:  within  = {res}0.2878                         {txt}Obs per group: min = {res}        4
{txt}       between = {res}0.7986                                        {txt}avg = {res}     17.8
{txt}       overall = {res}0.6569                                        {txt}max = {res}       19

                                                {txt}F({res}6{txt},{res}150{txt})           = {res}    30.70
{txt}corr(u_i, Xb)  = {res}0.5270                         {txt}Prob > F           =    {res}0.0000

{txt}{ralign 102:(Std. Err. adjusted for {res:151} clusters in ccode)}
{hline 37}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 38}{c |}{col 50}    Robust
{col 1}                        log_trainexp{col 38}{c |}      Coef.{col 50}   Std. Err.{col 62}      t{col 70}   P>|t|{col 78}     [95% Con{col 91}f. Interval]
{hline 37}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 23}coup_suc_lag1 {c |}{col 38}{res}{space 2}-2.284672{col 50}{space 2} .9137442{col 61}{space 1}   -2.50{col 70}{space 3}0.013{col 78}{space 4}-4.090144{col 91}{space 3}-.4791994
{txt}{space 19}log_trainexp_lag1 {c |}{col 38}{res}{space 2} .4361459{col 50}{space 2} .0407974{col 61}{space 1}   10.69{col 70}{space 3}0.000{col 78}{space 4}  .355534{col 91}{space 3} .5167577
{txt}{space 25}threat_lag1 {c |}{col 38}{res}{space 2}  -1.2186{col 50}{space 2} .5214923{col 61}{space 1}   -2.34{col 70}{space 3}0.021{col 78}{space 4} -2.24902{col 91}{space 3}-.1881808
{txt}{space 21}mingtidist_lag1 {c |}{col 38}{res}{space 2}-.0177599{col 50}{space 2} .0644424{col 61}{space 1}   -0.28{col 70}{space 3}0.783{col 78}{space 4} -.145092{col 91}{space 3} .1095722
{txt}{space 20}ideal_point_lag1 {c |}{col 38}{res}{space 2} 1.179808{col 50}{space 2}  .284397{col 61}{space 1}    4.15{col 70}{space 3}0.000{col 78}{space 4} .6178668{col 91}{space 3}  1.74175
{txt}{space 36} {c |}
c.mingtidist_lag1#c.ideal_point_lag1 {c |}{col 38}{res}{space 2} .1212995{col 50}{space 2} .0564645{col 61}{space 1}    2.15{col 70}{space 3}0.033{col 78}{space 4}  .009731{col 91}{space 3}  .232868
{txt}{space 36} {c |}
{space 31}_cons {c |}{col 38}{res}{space 2} 7.783048{col 50}{space 2} .5556025{col 61}{space 1}   14.01{col 70}{space 3}0.000{col 78}{space 4}  6.68523{col 91}{space 3} 8.880866
{txt}{hline 37}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
                             sigma_u {c |} {res} 1.8079175
                             {txt}sigma_e {c |} {res}  1.887966
                                 {txt}rho {c |} {res} .47835133{txt}   (fraction of variance due to u_i)
{hline 37}{c BT}{hline 64}

{com}. outreg2 using tableA4.xls, append ctitle(Expenditures) label
{txt}{browse `"tableA4.xls"'}
{browse `"C:\Users\Theodore McLauchlin\Dropbox\Military training - selection paper\ISQ Submission\Final submission"' :dir}{com} : {txt}{stata `"seeout using "tableA4.txt", label"':seeout}

{com}. //internal threats
. xtreg log_trainees coup_suc_lag1 log_trainees_lag1 imf_tax_lag1 rebels_combined_lag1##c.ideal_point_lag1  if NATOAndOthers==0 & year>=1999 & iraqaf==0 & regforce==1, fe vce(robust)

{txt}Fixed-effects (within) regression               Number of obs      = {res}     2563
{txt}Group variable: {res}ccode                           {txt}Number of groups   = {res}      148

{txt}R-sq:  within  = {res}0.3206                         {txt}Obs per group: min = {res}        4
{txt}       between = {res}0.6996                                        {txt}avg = {res}     17.3
{txt}       overall = {res}0.5632                                        {txt}max = {res}       19

                                                {txt}F({res}6{txt},{res}147{txt})           = {res}    55.29
{txt}corr(u_i, Xb)  = {res}0.2790                         {txt}Prob > F           =    {res}0.0000

{txt}{ralign 105:(Std. Err. adjusted for {res:148} clusters in ccode)}
{hline 40}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 41}{c |}{col 53}    Robust
{col 1}                           log_trainees{col 41}{c |}      Coef.{col 53}   Std. Err.{col 65}      t{col 73}   P>|t|{col 81}     [95% Con{col 94}f. Interval]
{hline 40}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 26}coup_suc_lag1 {c |}{col 41}{res}{space 2}-.8321427{col 53}{space 2} .4432259{col 64}{space 1}   -1.88{col 73}{space 3}0.062{col 81}{space 4} -1.70806{col 94}{space 3} .0437751
{txt}{space 22}log_trainees_lag1 {c |}{col 41}{res}{space 2} .4923417{col 53}{space 2} .0342441{col 64}{space 1}   14.38{col 73}{space 3}0.000{col 81}{space 4} .4246674{col 94}{space 3}  .560016
{txt}{space 27}imf_tax_lag1 {c |}{col 41}{res}{space 2}  .014307{col 53}{space 2} .0089163{col 64}{space 1}    1.60{col 73}{space 3}0.111{col 81}{space 4}-.0033138{col 94}{space 3} .0319278
{txt}{space 17}1.rebels_combined_lag1 {c |}{col 41}{res}{space 2}-.0805601{col 53}{space 2} .1158812{col 64}{space 1}   -0.70{col 73}{space 3}0.488{col 81}{space 4}-.3095684{col 94}{space 3} .1484483
{txt}{space 23}ideal_point_lag1 {c |}{col 41}{res}{space 2}  .768085{col 53}{space 2} .1636368{col 64}{space 1}    4.69{col 73}{space 3}0.000{col 81}{space 4} .4447005{col 94}{space 3}  1.09147
{txt}{space 39} {c |}
rebels_combined_lag1#c.ideal_point_lag1 {c |}
{space 37}1  {c |}{col 41}{res}{space 2} .0729191{col 53}{space 2} .1374311{col 64}{space 1}    0.53{col 73}{space 3}0.597{col 81}{space 4}-.1986767{col 94}{space 3}  .344515
{txt}{space 39} {c |}
{space 34}_cons {c |}{col 41}{res}{space 2} 2.477468{col 53}{space 2} .2296979{col 64}{space 1}   10.79{col 73}{space 3}0.000{col 81}{space 4} 2.023531{col 94}{space 3} 2.931405
{txt}{hline 40}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
                                sigma_u {c |} {res} .91360221
                                {txt}sigma_e {c |} {res} .99294307
                                    {txt}rho {c |} {res} .45845696{txt}   (fraction of variance due to u_i)
{hline 40}{c BT}{hline 64}

{com}. outreg2 using tableA4.xls, append ctitle(Trainees) label
{txt}{browse `"tableA4.xls"'}
{browse `"C:\Users\Theodore McLauchlin\Dropbox\Military training - selection paper\ISQ Submission\Final submission"' :dir}{com} : {txt}{stata `"seeout using "tableA4.txt", label"':seeout}

{com}. xtreg log_trainexp coup_suc_lag1 log_trainexp_lag1 imf_tax_lag1  rebels_combined_lag1##c.ideal_point_lag1  if NATOAndOthers==0 & year>=1999 & iraqaf==0 & regforce==1, fe vce(robust)

{txt}Fixed-effects (within) regression               Number of obs      = {res}     2563
{txt}Group variable: {res}ccode                           {txt}Number of groups   = {res}      148

{txt}R-sq:  within  = {res}0.2558                         {txt}Obs per group: min = {res}        4
{txt}       between = {res}0.6897                                        {txt}avg = {res}     17.3
{txt}       overall = {res}0.5417                                        {txt}max = {res}       19

                                                {txt}F({res}6{txt},{res}147{txt})           = {res}    23.21
{txt}corr(u_i, Xb)  = {res}0.3740                         {txt}Prob > F           =    {res}0.0000

{txt}{ralign 105:(Std. Err. adjusted for {res:148} clusters in ccode)}
{hline 40}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 41}{c |}{col 53}    Robust
{col 1}                           log_trainexp{col 41}{c |}      Coef.{col 53}   Std. Err.{col 65}      t{col 73}   P>|t|{col 81}     [95% Con{col 94}f. Interval]
{hline 40}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 26}coup_suc_lag1 {c |}{col 41}{res}{space 2}-2.336845{col 53}{space 2}   .93047{col 64}{space 1}   -2.51{col 73}{space 3}0.013{col 81}{space 4}-4.175671{col 94}{space 3}-.4980196
{txt}{space 22}log_trainexp_lag1 {c |}{col 41}{res}{space 2} .4080492{col 53}{space 2} .0439248{col 64}{space 1}    9.29{col 73}{space 3}0.000{col 81}{space 4} .3212436{col 94}{space 3} .4948549
{txt}{space 27}imf_tax_lag1 {c |}{col 41}{res}{space 2} .0287785{col 53}{space 2} .0201004{col 64}{space 1}    1.43{col 73}{space 3}0.154{col 81}{space 4}-.0109447{col 94}{space 3} .0685016
{txt}{space 17}1.rebels_combined_lag1 {c |}{col 41}{res}{space 2} -.098044{col 53}{space 2} .1546072{col 64}{space 1}   -0.63{col 73}{space 3}0.527{col 81}{space 4}-.4035839{col 94}{space 3} .2074959
{txt}{space 23}ideal_point_lag1 {c |}{col 41}{res}{space 2} 1.246302{col 53}{space 2}  .342581{col 64}{space 1}    3.64{col 73}{space 3}0.000{col 81}{space 4} .5692815{col 94}{space 3} 1.923322
{txt}{space 39} {c |}
rebels_combined_lag1#c.ideal_point_lag1 {c |}
{space 37}1  {c |}{col 41}{res}{space 2} .1414619{col 53}{space 2} .2442228{col 64}{space 1}    0.58{col 73}{space 3}0.563{col 81}{space 4}-.3411793{col 94}{space 3} .6241031
{txt}{space 39} {c |}
{space 34}_cons {c |}{col 41}{res}{space 2} 7.829688{col 53}{space 2} .6737753{col 64}{space 1}   11.62{col 73}{space 3}0.000{col 81}{space 4} 6.498151{col 94}{space 3} 9.161225
{txt}{hline 40}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
                                sigma_u {c |} {res} 1.8628824
                                {txt}sigma_e {c |} {res} 1.8308594
                                    {txt}rho {c |} {res} .50866888{txt}   (fraction of variance due to u_i)
{hline 40}{c BT}{hline 64}

{com}. outreg2 using tableA4.xls, append ctitle(Expenditures) label
{txt}{browse `"tableA4.xls"'}
{browse `"C:\Users\Theodore McLauchlin\Dropbox\Military training - selection paper\ISQ Submission\Final submission"' :dir}{com} : {txt}{stata `"seeout using "tableA4.txt", label"':seeout}

{com}. xtreg log_trainees coup_suc_lag1 log_trainees_lag1 imf_tax_lag1 islamist_combined_lag1##c.ideal_point_lag1 if NATOAndOthers==0 & year>=1999 & iraqaf==0 & regforce==1, fe vce(robust)

{txt}Fixed-effects (within) regression               Number of obs      = {res}     2563
{txt}Group variable: {res}ccode                           {txt}Number of groups   = {res}      148

{txt}R-sq:  within  = {res}0.3199                         {txt}Obs per group: min = {res}        4
{txt}       between = {res}0.7128                                        {txt}avg = {res}     17.3
{txt}       overall = {res}0.5712                                        {txt}max = {res}       19

                                                {txt}F({res}6{txt},{res}147{txt})           = {res}    59.68
{txt}corr(u_i, Xb)  = {res}0.3019                         {txt}Prob > F           =    {res}0.0000

{txt}{ralign 107:(Std. Err. adjusted for {res:148} clusters in ccode)}
{hline 42}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 43}{c |}{col 55}    Robust
{col 1}                             log_trainees{col 43}{c |}      Coef.{col 55}   Std. Err.{col 67}      t{col 75}   P>|t|{col 83}     [95% Con{col 96}f. Interval]
{hline 42}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 28}coup_suc_lag1 {c |}{col 43}{res}{space 2}-.8238802{col 55}{space 2} .4492467{col 66}{space 1}   -1.83{col 75}{space 3}0.069{col 83}{space 4}-1.711696{col 96}{space 3} .0639361
{txt}{space 24}log_trainees_lag1 {c |}{col 43}{res}{space 2} .4914558{col 55}{space 2} .0339688{col 66}{space 1}   14.47{col 75}{space 3}0.000{col 83}{space 4} .4243256{col 96}{space 3}  .558586
{txt}{space 29}imf_tax_lag1 {c |}{col 43}{res}{space 2}  .013943{col 55}{space 2} .0087892{col 66}{space 1}    1.59{col 75}{space 3}0.115{col 83}{space 4}-.0034266{col 96}{space 3} .0313125
{txt}{space 17}1.islamist_combined_lag1 {c |}{col 43}{res}{space 2} .0499299{col 55}{space 2} .1193328{col 66}{space 1}    0.42{col 75}{space 3}0.676{col 83}{space 4}-.1858995{col 96}{space 3} .2857594
{txt}{space 25}ideal_point_lag1 {c |}{col 43}{res}{space 2} .7960642{col 55}{space 2} .1480781{col 66}{space 1}    5.38{col 75}{space 3}0.000{col 83}{space 4} .5034272{col 96}{space 3} 1.088701
{txt}{space 41} {c |}
islamist_combined_lag1#c.ideal_point_lag1 {c |}
{space 39}1  {c |}{col 43}{res}{space 2} .0095688{col 55}{space 2} .1180703{col 66}{space 1}    0.08{col 75}{space 3}0.936{col 83}{space 4}-.2237657{col 96}{space 3} .2429033
{txt}{space 41} {c |}
{space 36}_cons {c |}{col 43}{res}{space 2} 2.436664{col 55}{space 2} .2168671{col 66}{space 1}   11.24{col 75}{space 3}0.000{col 83}{space 4} 2.008084{col 96}{space 3} 2.865244
{txt}{hline 42}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
                                  sigma_u {c |} {res} .90111028
                                  {txt}sigma_e {c |} {res}  .9934305
                                      {txt}rho {c |} {res} .45138583{txt}   (fraction of variance due to u_i)
{hline 42}{c BT}{hline 64}

{com}. outreg2 using tableA4.xls, append ctitle(Trainees) label
{txt}{browse `"tableA4.xls"'}
{browse `"C:\Users\Theodore McLauchlin\Dropbox\Military training - selection paper\ISQ Submission\Final submission"' :dir}{com} : {txt}{stata `"seeout using "tableA4.txt", label"':seeout}

{com}. xtreg log_trainexp coup_suc_lag1 log_trainexp_lag1 imf_tax_lag1  islamist_combined_lag1##c.ideal_point_lag1  if NATOAndOthers==0 & year>=1999 & iraqaf==0 & regforce==1, fe vce(robust)

{txt}Fixed-effects (within) regression               Number of obs      = {res}     2563
{txt}Group variable: {res}ccode                           {txt}Number of groups   = {res}      148

{txt}R-sq:  within  = {res}0.2553                         {txt}Obs per group: min = {res}        4
{txt}       between = {res}0.6921                                        {txt}avg = {res}     17.3
{txt}       overall = {res}0.5435                                        {txt}max = {res}       19

                                                {txt}F({res}6{txt},{res}147{txt})           = {res}    25.02
{txt}corr(u_i, Xb)  = {res}0.3859                         {txt}Prob > F           =    {res}0.0000

{txt}{ralign 107:(Std. Err. adjusted for {res:148} clusters in ccode)}
{hline 42}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 43}{c |}{col 55}    Robust
{col 1}                             log_trainexp{col 43}{c |}      Coef.{col 55}   Std. Err.{col 67}      t{col 75}   P>|t|{col 83}     [95% Con{col 96}f. Interval]
{hline 42}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 28}coup_suc_lag1 {c |}{col 43}{res}{space 2}-2.317915{col 55}{space 2} .9392728{col 66}{space 1}   -2.47{col 75}{space 3}0.015{col 83}{space 4}-4.174138{col 96}{space 3}-.4616933
{txt}{space 24}log_trainexp_lag1 {c |}{col 43}{res}{space 2} .4078258{col 55}{space 2} .0436302{col 66}{space 1}    9.35{col 75}{space 3}0.000{col 83}{space 4} .3216023{col 96}{space 3} .4940494
{txt}{space 29}imf_tax_lag1 {c |}{col 43}{res}{space 2} .0287144{col 55}{space 2} .0199861{col 66}{space 1}    1.44{col 75}{space 3}0.153{col 83}{space 4}-.0107828{col 96}{space 3} .0682116
{txt}{space 17}1.islamist_combined_lag1 {c |}{col 43}{res}{space 2} .0073724{col 55}{space 2} .3167692{col 66}{space 1}    0.02{col 75}{space 3}0.981{col 83}{space 4}-.6186374{col 96}{space 3} .6333822
{txt}{space 25}ideal_point_lag1 {c |}{col 43}{res}{space 2} 1.319517{col 55}{space 2} .3187725{col 66}{space 1}    4.14{col 75}{space 3}0.000{col 83}{space 4} .6895487{col 96}{space 3} 1.949486
{txt}{space 41} {c |}
islamist_combined_lag1#c.ideal_point_lag1 {c |}
{space 39}1  {c |}{col 43}{res}{space 2}-.0657524{col 55}{space 2} .3616242{col 66}{space 1}   -0.18{col 75}{space 3}0.856{col 83}{space 4}-.7804062{col 96}{space 3} .6489013
{txt}{space 41} {c |}
{space 36}_cons {c |}{col 43}{res}{space 2} 7.778364{col 55}{space 2} .6555996{col 66}{space 1}   11.86{col 75}{space 3}0.000{col 83}{space 4} 6.482746{col 96}{space 3} 9.073981
{txt}{hline 42}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
                                  sigma_u {c |} {res} 1.8663293
                                  {txt}sigma_e {c |} {res} 1.8315028
                                      {txt}rho {c |} {res} .50941725{txt}   (fraction of variance due to u_i)
{hline 42}{c BT}{hline 64}

{com}. outreg2 using tableA4.xls, append ctitle(Expenditures) label
{txt}{browse `"tableA4.xls"'}
{browse `"C:\Users\Theodore McLauchlin\Dropbox\Military training - selection paper\ISQ Submission\Final submission"' :dir}{com} : {txt}{stata `"seeout using "tableA4.txt", label"':seeout}

{com}. //norm transmission
. xtreg log_trainees coup_suc_lag1 log_trainees_lag1  v2x_regime_lag1 if NATOAndOthers==0 & year>=1999 & iraqaf==0 & regforce==1, fe vce(robust)

{txt}Fixed-effects (within) regression               Number of obs      = {res}     2635
{txt}Group variable: {res}ccode                           {txt}Number of groups   = {res}      147

{txt}R-sq:  within  = {res}0.3303                         {txt}Obs per group: min = {res}        4
{txt}       between = {res}0.9320                                        {txt}avg = {res}     17.9
{txt}       overall = {res}0.6977                                        {txt}max = {res}       19

                                                {txt}F({res}3{txt},{res}146{txt})           = {res}   112.00
{txt}corr(u_i, Xb)  = {res}0.6813                         {txt}Prob > F           =    {res}0.0000

{txt}{ralign 83:(Std. Err. adjusted for {res:147} clusters in ccode)}
{hline 18}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 19}{c |}{col 31}    Robust
{col 1}     log_trainees{col 19}{c |}      Coef.{col 31}   Std. Err.{col 43}      t{col 51}   P>|t|{col 59}     [95% Con{col 72}f. Interval]
{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 4}coup_suc_lag1 {c |}{col 19}{res}{space 2}-.7891749{col 31}{space 2} .4171895{col 42}{space 1}   -1.89{col 51}{space 3}0.061{col 59}{space 4}-1.613686{col 72}{space 3} .0353358
{txt}log_trainees_lag1 {c |}{col 19}{res}{space 2} .5133326{col 31}{space 2} .0323419{col 42}{space 1}   15.87{col 51}{space 3}0.000{col 59}{space 4} .4494139{col 72}{space 3} .5772513
{txt}{space 2}v2x_regime_lag1 {c |}{col 19}{res}{space 2} .2817139{col 31}{space 2} .0790044{col 42}{space 1}    3.57{col 51}{space 3}0.000{col 59}{space 4} .1255739{col 72}{space 3} .4378539
{txt}{space 12}_cons {c |}{col 19}{res}{space 2} 1.837879{col 31}{space 2} .1724307{col 42}{space 1}   10.66{col 51}{space 3}0.000{col 59}{space 4} 1.497096{col 72}{space 3} 2.178662
{txt}{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
          sigma_u {c |} {res}  .8072163
          {txt}sigma_e {c |} {res} 1.0152417
              {txt}rho {c |} {res} .38732258{txt}   (fraction of variance due to u_i)
{hline 18}{c BT}{hline 64}

{com}. outreg2 using tableA4.xls, append ctitle(Trainees) label
{txt}{browse `"tableA4.xls"'}
{browse `"C:\Users\Theodore McLauchlin\Dropbox\Military training - selection paper\ISQ Submission\Final submission"' :dir}{com} : {txt}{stata `"seeout using "tableA4.txt", label"':seeout}

{com}. xtreg log_trainexp coup_suc_lag1 log_trainexp_lag1 v2x_regime_lag1  if NATOAndOthers==0 & year>=1999 & iraqaf==0 & regforce==1, fe vce(robust)

{txt}Fixed-effects (within) regression               Number of obs      = {res}     2635
{txt}Group variable: {res}ccode                           {txt}Number of groups   = {res}      147

{txt}R-sq:  within  = {res}0.2858                         {txt}Obs per group: min = {res}        4
{txt}       between = {res}0.9047                                        {txt}avg = {res}     17.9
{txt}       overall = {res}0.6812                                        {txt}max = {res}       19

                                                {txt}F({res}3{txt},{res}146{txt})           = {res}    46.70
{txt}corr(u_i, Xb)  = {res}0.6864                         {txt}Prob > F           =    {res}0.0000

{txt}{ralign 83:(Std. Err. adjusted for {res:147} clusters in ccode)}
{hline 18}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 19}{c |}{col 31}    Robust
{col 1}     log_trainexp{col 19}{c |}      Coef.{col 31}   Std. Err.{col 43}      t{col 51}   P>|t|{col 59}     [95% Con{col 72}f. Interval]
{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 4}coup_suc_lag1 {c |}{col 19}{res}{space 2} -2.03443{col 31}{space 2}  .966902{col 42}{space 1}   -2.10{col 51}{space 3}0.037{col 59}{space 4}-3.945363{col 72}{space 3}-.1234973
{txt}log_trainexp_lag1 {c |}{col 19}{res}{space 2}  .439685{col 31}{space 2} .0448953{col 42}{space 1}    9.79{col 51}{space 3}0.000{col 59}{space 4} .3509564{col 72}{space 3} .5284136
{txt}{space 2}v2x_regime_lag1 {c |}{col 19}{res}{space 2} .5987891{col 31}{space 2} .1728778{col 42}{space 1}    3.46{col 51}{space 3}0.001{col 59}{space 4} .2571229{col 72}{space 3} .9404553
{txt}{space 12}_cons {c |}{col 19}{res}{space 2}  6.32713{col 31}{space 2}  .559727{col 42}{space 1}   11.30{col 51}{space 3}0.000{col 59}{space 4} 5.220916{col 72}{space 3} 7.433344
{txt}{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
          sigma_u {c |} {res} 1.8983932
          {txt}sigma_e {c |} {res} 1.9591383
              {txt}rho {c |} {res} .48425675{txt}   (fraction of variance due to u_i)
{hline 18}{c BT}{hline 64}

{com}. outreg2 using tableA4.xls, append ctitle(Expenditures) label
{txt}{browse `"tableA4.xls"'}
{browse `"C:\Users\Theodore McLauchlin\Dropbox\Military training - selection paper\ISQ Submission\Final submission"' :dir}{com} : {txt}{stata `"seeout using "tableA4.txt", label"':seeout}

{com}. //full model
. xtreg log_trainees coup_suc_lag1 log_trainees_lag1  threat_lag1 c.mingtidist_lag1##c.ideal_point_lag1 imf_tax_lag1  rebels_combined_lag1##c.ideal_point_lag1 v2x_regime_lag1 if NATOAndOthers==0 & year>=1999 & iraqaf==0 & regforce==1, fe vce(robust)
{txt}note: ideal_point_lag1 omitted because of collinearity

Fixed-effects (within) regression               Number of obs      = {res}     2450
{txt}Group variable: {res}ccode                           {txt}Number of groups   = {res}      142

{txt}R-sq:  within  = {res}0.3324                         {txt}Obs per group: min = {res}        4
{txt}       between = {res}0.6347                                        {txt}avg = {res}     17.3
{txt}       overall = {res}0.5298                                        {txt}max = {res}       19

                                                {txt}F({res}10{txt},{res}141{txt})          = {res}    35.75
{txt}corr(u_i, Xb)  = {res}0.1191                         {txt}Prob > F           =    {res}0.0000

{txt}{ralign 105:(Std. Err. adjusted for {res:142} clusters in ccode)}
{hline 40}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 41}{c |}{col 53}    Robust
{col 1}                           log_trainees{col 41}{c |}      Coef.{col 53}   Std. Err.{col 65}      t{col 73}   P>|t|{col 81}     [95% Con{col 94}f. Interval]
{hline 40}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 26}coup_suc_lag1 {c |}{col 41}{res}{space 2}-.7901765{col 53}{space 2}  .447289{col 64}{space 1}   -1.77{col 73}{space 3}0.079{col 81}{space 4}-1.674436{col 94}{space 3} .0940832
{txt}{space 22}log_trainees_lag1 {c |}{col 41}{res}{space 2} .4850538{col 53}{space 2}  .034832{col 64}{space 1}   13.93{col 73}{space 3}0.000{col 81}{space 4} .4161933{col 94}{space 3} .5539142
{txt}{space 28}threat_lag1 {c |}{col 41}{res}{space 2} -.516244{col 53}{space 2} .2837823{col 64}{space 1}   -1.82{col 73}{space 3}0.071{col 81}{space 4}-1.077262{col 94}{space 3} .0447741
{txt}{space 24}mingtidist_lag1 {c |}{col 41}{res}{space 2} .0452315{col 53}{space 2} .0360498{col 64}{space 1}    1.25{col 73}{space 3}0.212{col 81}{space 4}-.0260364{col 94}{space 3} .1164995
{txt}{space 23}ideal_point_lag1 {c |}{col 41}{res}{space 2} .6540003{col 53}{space 2} .1787508{col 64}{space 1}    3.66{col 73}{space 3}0.000{col 81}{space 4} .3006223{col 94}{space 3} 1.007378
{txt}{space 39} {c |}
{space 3}c.mingtidist_lag1#c.ideal_point_lag1 {c |}{col 41}{res}{space 2} .0794215{col 53}{space 2} .0375416{col 64}{space 1}    2.12{col 73}{space 3}0.036{col 81}{space 4} .0052042{col 94}{space 3} .1536388
{txt}{space 39} {c |}
{space 27}imf_tax_lag1 {c |}{col 41}{res}{space 2} .0118965{col 53}{space 2} .0095311{col 64}{space 1}    1.25{col 73}{space 3}0.214{col 81}{space 4}-.0069459{col 94}{space 3} .0307389
{txt}{space 17}1.rebels_combined_lag1 {c |}{col 41}{res}{space 2}-.0917553{col 53}{space 2} .1093264{col 64}{space 1}   -0.84{col 73}{space 3}0.403{col 81}{space 4}-.3078861{col 94}{space 3} .1243756
{txt}{space 23}ideal_point_lag1 {c |}{col 41}{res}{space 2}        0{col 53}{txt}  (omitted)
{space 39} {c |}
rebels_combined_lag1#c.ideal_point_lag1 {c |}
{space 37}1  {c |}{col 41}{res}{space 2}  .048822{col 53}{space 2} .1309826{col 64}{space 1}    0.37{col 73}{space 3}0.710{col 81}{space 4}-.2101217{col 94}{space 3} .3077656
{txt}{space 39} {c |}
{space 24}v2x_regime_lag1 {c |}{col 41}{res}{space 2} .2314032{col 53}{space 2} .0809236{col 64}{space 1}    2.86{col 73}{space 3}0.005{col 81}{space 4} .0714228{col 94}{space 3} .3913835
{txt}{space 34}_cons {c |}{col 41}{res}{space 2} 2.195281{col 53}{space 2} .2474684{col 64}{space 1}    8.87{col 73}{space 3}0.000{col 81}{space 4} 1.706053{col 94}{space 3} 2.684509
{txt}{hline 40}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
                                sigma_u {c |} {res} .97728836
                                {txt}sigma_e {c |} {res} .99897499
                                    {txt}rho {c |} {res} .48902777{txt}   (fraction of variance due to u_i)
{hline 40}{c BT}{hline 64}

{com}. estimates store mod9fe
{txt}
{com}. outreg2 using tableA4.xls, append ctitle(Trainees) label
{txt}{browse `"tableA4.xls"'}
{browse `"C:\Users\Theodore McLauchlin\Dropbox\Military training - selection paper\ISQ Submission\Final submission"' :dir}{com} : {txt}{stata `"seeout using "tableA4.txt", label"':seeout}

{com}. xtreg log_trainexp coup_suc_lag1 log_trainexp_lag1 threat_lag1 c.mingtidist_lag1##c.ideal_point_lag1 imf_tax_lag1  rebels_combined_lag1##c.ideal_point_lag1 v2x_regime_lag1 if NATOAndOthers==0 & year>=1999 & iraqaf==0 & regforce==1, fe vce(robust)
{txt}note: ideal_point_lag1 omitted because of collinearity

Fixed-effects (within) regression               Number of obs      = {res}     2450
{txt}Group variable: {res}ccode                           {txt}Number of groups   = {res}      142

{txt}R-sq:  within  = {res}0.2687                         {txt}Obs per group: min = {res}        4
{txt}       between = {res}0.6111                                        {txt}avg = {res}     17.3
{txt}       overall = {res}0.5002                                        {txt}max = {res}       19

                                                {txt}F({res}10{txt},{res}141{txt})          = {res}    19.75
{txt}corr(u_i, Xb)  = {res}0.1942                         {txt}Prob > F           =    {res}0.0000

{txt}{ralign 105:(Std. Err. adjusted for {res:142} clusters in ccode)}
{hline 40}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 41}{c |}{col 53}    Robust
{col 1}                           log_trainexp{col 41}{c |}      Coef.{col 53}   Std. Err.{col 65}      t{col 73}   P>|t|{col 81}     [95% Con{col 94}f. Interval]
{hline 40}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 26}coup_suc_lag1 {c |}{col 41}{res}{space 2}-2.231293{col 53}{space 2} .9379152{col 64}{space 1}   -2.38{col 73}{space 3}0.019{col 81}{space 4}-4.085487{col 94}{space 3}-.3770987
{txt}{space 22}log_trainexp_lag1 {c |}{col 41}{res}{space 2} .3957531{col 53}{space 2} .0450361{col 64}{space 1}    8.79{col 73}{space 3}0.000{col 81}{space 4} .3067198{col 94}{space 3} .4847863
{txt}{space 28}threat_lag1 {c |}{col 41}{res}{space 2}-1.583632{col 53}{space 2} .5653048{col 64}{space 1}   -2.80{col 73}{space 3}0.006{col 81}{space 4}-2.701201{col 94}{space 3} -.466063
{txt}{space 24}mingtidist_lag1 {c |}{col 41}{res}{space 2} .0186712{col 53}{space 2} .0669428{col 64}{space 1}    0.28{col 73}{space 3}0.781{col 81}{space 4}-.1136701{col 94}{space 3} .1510125
{txt}{space 23}ideal_point_lag1 {c |}{col 41}{res}{space 2} 1.002878{col 53}{space 2} .3755946{col 64}{space 1}    2.67{col 73}{space 3}0.008{col 81}{space 4} .2603529{col 94}{space 3} 1.745402
{txt}{space 39} {c |}
{space 3}c.mingtidist_lag1#c.ideal_point_lag1 {c |}{col 41}{res}{space 2} .1475916{col 53}{space 2} .0548907{col 64}{space 1}    2.69{col 73}{space 3}0.008{col 81}{space 4} .0390764{col 94}{space 3} .2561067
{txt}{space 39} {c |}
{space 27}imf_tax_lag1 {c |}{col 41}{res}{space 2} .0225016{col 53}{space 2} .0215539{col 64}{space 1}    1.04{col 73}{space 3}0.298{col 81}{space 4}-.0201089{col 94}{space 3} .0651122
{txt}{space 17}1.rebels_combined_lag1 {c |}{col 41}{res}{space 2}-.0920187{col 53}{space 2} .1517172{col 64}{space 1}   -0.61{col 73}{space 3}0.545{col 81}{space 4}-.3919532{col 94}{space 3} .2079157
{txt}{space 23}ideal_point_lag1 {c |}{col 41}{res}{space 2}        0{col 53}{txt}  (omitted)
{space 39} {c |}
rebels_combined_lag1#c.ideal_point_lag1 {c |}
{space 37}1  {c |}{col 41}{res}{space 2} .0952775{col 53}{space 2} .2397625{col 64}{space 1}    0.40{col 73}{space 3}0.692{col 81}{space 4}-.3787166{col 94}{space 3} .5692715
{txt}{space 39} {c |}
{space 24}v2x_regime_lag1 {c |}{col 41}{res}{space 2} .5325487{col 53}{space 2} .1689363{col 64}{space 1}    3.15{col 73}{space 3}0.002{col 81}{space 4} .1985732{col 94}{space 3} .8665242
{txt}{space 34}_cons {c |}{col 41}{res}{space 2} 7.307687{col 53}{space 2} .7110174{col 64}{space 1}   10.28{col 73}{space 3}0.000{col 81}{space 4} 5.902054{col 94}{space 3} 8.713319
{txt}{hline 40}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
                                sigma_u {c |} {res}  1.979384
                                {txt}sigma_e {c |} {res}  1.850116
                                    {txt}rho {c |} {res} .53371745{txt}   (fraction of variance due to u_i)
{hline 40}{c BT}{hline 64}

{com}. outreg2 using tableA4.xls, append ctitle(Expenditures) label
{txt}{browse `"tableA4.xls"'}
{browse `"C:\Users\Theodore McLauchlin\Dropbox\Military training - selection paper\ISQ Submission\Final submission"' :dir}{com} : {txt}{stata `"seeout using "tableA4.txt", label"':seeout}

{com}. 
. // appendix figure 2
. estimates restore mod9fe
{txt}(results {stata estimates replay mod9fe:mod9fe} are active now)

{com}. margins, at(mingtidist_lag1 = (0.5 0.75 1 1.25 1.5 1.75 2 2.25 2.5 2.75 3) ideal_point_lag1 = -1) post
{res}
{txt}Predictive margins{col 51}Number of obs{col 67}= {res}      2450
{txt}Model VCE{col 14}: {res}Robust

{txt}{p2colset 1 14 16 2}{...}
{p2col:Expression}:{space 1}{res:Linear prediction, predict()}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:1._at}:{space 1}{res:{txt:mingtidist~1}{space 4}{txt:=} {space 9}.5}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col: }{space 2}{res:{txt:ideal_poin~1}{space 4}{txt:=} {space 9}-1}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:2._at}:{space 1}{res:{txt:mingtidist~1}{space 4}{txt:=} {space 8}.75}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col: }{space 2}{res:{txt:ideal_poin~1}{space 4}{txt:=} {space 9}-1}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:3._at}:{space 1}{res:{txt:mingtidist~1}{space 4}{txt:=} {space 10}1}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col: }{space 2}{res:{txt:ideal_poin~1}{space 4}{txt:=} {space 9}-1}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:4._at}:{space 1}{res:{txt:mingtidist~1}{space 4}{txt:=} {space 7}1.25}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col: }{space 2}{res:{txt:ideal_poin~1}{space 4}{txt:=} {space 9}-1}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:5._at}:{space 1}{res:{txt:mingtidist~1}{space 4}{txt:=} {space 8}1.5}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col: }{space 2}{res:{txt:ideal_poin~1}{space 4}{txt:=} {space 9}-1}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:6._at}:{space 1}{res:{txt:mingtidist~1}{space 4}{txt:=} {space 7}1.75}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col: }{space 2}{res:{txt:ideal_poin~1}{space 4}{txt:=} {space 9}-1}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:7._at}:{space 1}{res:{txt:mingtidist~1}{space 4}{txt:=} {space 10}2}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col: }{space 2}{res:{txt:ideal_poin~1}{space 4}{txt:=} {space 9}-1}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:8._at}:{space 1}{res:{txt:mingtidist~1}{space 4}{txt:=} {space 7}2.25}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col: }{space 2}{res:{txt:ideal_poin~1}{space 4}{txt:=} {space 9}-1}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:9._at}:{space 1}{res:{txt:mingtidist~1}{space 4}{txt:=} {space 8}2.5}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col: }{space 2}{res:{txt:ideal_poin~1}{space 4}{txt:=} {space 9}-1}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:10._at}:{space 1}{res:{txt:mingtidist~1}{space 4}{txt:=} {space 7}2.75}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col: }{space 2}{res:{txt:ideal_poin~1}{space 4}{txt:=} {space 9}-1}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:11._at}:{space 1}{res:{txt:mingtidist~1}{space 4}{txt:=} {space 10}3}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col: }{space 2}{res:{txt:ideal_poin~1}{space 4}{txt:=} {space 9}-1}{p_end}
{p2colreset}{...}

{res}{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26} Delta-method
{col 14}{c |}     Margin{col 26}   Std. Err.{col 38}      z{col 46}   P>|z|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 9}_at {c |}
{space 10}1  {c |}{col 14}{res}{space 2} 4.183114{col 26}{space 2} .0986213{col 37}{space 1}   42.42{col 46}{space 3}0.000{col 54}{space 4} 3.989819{col 67}{space 3} 4.376408
{txt}{space 10}2  {c |}{col 14}{res}{space 2} 4.174566{col 26}{space 2} .0966938{col 37}{space 1}   43.17{col 46}{space 3}0.000{col 54}{space 4}  3.98505{col 67}{space 3} 4.364083
{txt}{space 10}3  {c |}{col 14}{res}{space 2} 4.166019{col 26}{space 2} .0950446{col 37}{space 1}   43.83{col 46}{space 3}0.000{col 54}{space 4} 3.979735{col 67}{space 3} 4.352303
{txt}{space 10}4  {c |}{col 14}{res}{space 2} 4.157471{col 26}{space 2} .0936883{col 37}{space 1}   44.38{col 46}{space 3}0.000{col 54}{space 4} 3.973845{col 67}{space 3} 4.341097
{txt}{space 10}5  {c |}{col 14}{res}{space 2} 4.148924{col 26}{space 2} .0926378{col 37}{space 1}   44.79{col 46}{space 3}0.000{col 54}{space 4} 3.967357{col 67}{space 3}  4.33049
{txt}{space 10}6  {c |}{col 14}{res}{space 2} 4.140376{col 26}{space 2} .0919037{col 37}{space 1}   45.05{col 46}{space 3}0.000{col 54}{space 4} 3.960248{col 67}{space 3} 4.320504
{txt}{space 10}7  {c |}{col 14}{res}{space 2} 4.131829{col 26}{space 2} .0914934{col 37}{space 1}   45.16{col 46}{space 3}0.000{col 54}{space 4} 3.952505{col 67}{space 3} 4.311152
{txt}{space 10}8  {c |}{col 14}{res}{space 2} 4.123281{col 26}{space 2} .0914114{col 37}{space 1}   45.11{col 46}{space 3}0.000{col 54}{space 4} 3.944118{col 67}{space 3} 4.302444
{txt}{space 10}9  {c |}{col 14}{res}{space 2} 4.114734{col 26}{space 2} .0916586{col 37}{space 1}   44.89{col 46}{space 3}0.000{col 54}{space 4} 3.935086{col 67}{space 3} 4.294381
{txt}{space 9}10  {c |}{col 14}{res}{space 2} 4.106186{col 26}{space 2} .0922323{col 37}{space 1}   44.52{col 46}{space 3}0.000{col 54}{space 4} 3.925414{col 67}{space 3} 4.286958
{txt}{space 9}11  {c |}{col 14}{res}{space 2} 4.097639{col 26}{space 2} .0931265{col 37}{space 1}   44.00{col 46}{space 3}0.000{col 54}{space 4} 3.915114{col 67}{space 3} 4.280163
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. estimates store align_n1
{txt}
{com}. estimates restore mod9fe
{txt}(results {stata estimates replay mod9fe:mod9fe} are active now)

{com}. margins, at(mingtidist_lag1 = (0.5 0.75 1 1.25 1.5 1.75 2 2.25 2.5 2.75 3) ideal_point_lag1 = 0) post
{res}
{txt}Predictive margins{col 51}Number of obs{col 67}= {res}      2450
{txt}Model VCE{col 14}: {res}Robust

{txt}{p2colset 1 14 16 2}{...}
{p2col:Expression}:{space 1}{res:Linear prediction, predict()}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:1._at}:{space 1}{res:{txt:mingtidist~1}{space 4}{txt:=} {space 9}.5}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col: }{space 2}{res:{txt:ideal_poin~1}{space 4}{txt:=} {space 10}0}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:2._at}:{space 1}{res:{txt:mingtidist~1}{space 4}{txt:=} {space 8}.75}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col: }{space 2}{res:{txt:ideal_poin~1}{space 4}{txt:=} {space 10}0}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:3._at}:{space 1}{res:{txt:mingtidist~1}{space 4}{txt:=} {space 10}1}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col: }{space 2}{res:{txt:ideal_poin~1}{space 4}{txt:=} {space 10}0}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:4._at}:{space 1}{res:{txt:mingtidist~1}{space 4}{txt:=} {space 7}1.25}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col: }{space 2}{res:{txt:ideal_poin~1}{space 4}{txt:=} {space 10}0}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:5._at}:{space 1}{res:{txt:mingtidist~1}{space 4}{txt:=} {space 8}1.5}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col: }{space 2}{res:{txt:ideal_poin~1}{space 4}{txt:=} {space 10}0}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:6._at}:{space 1}{res:{txt:mingtidist~1}{space 4}{txt:=} {space 7}1.75}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col: }{space 2}{res:{txt:ideal_poin~1}{space 4}{txt:=} {space 10}0}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:7._at}:{space 1}{res:{txt:mingtidist~1}{space 4}{txt:=} {space 10}2}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col: }{space 2}{res:{txt:ideal_poin~1}{space 4}{txt:=} {space 10}0}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:8._at}:{space 1}{res:{txt:mingtidist~1}{space 4}{txt:=} {space 7}2.25}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col: }{space 2}{res:{txt:ideal_poin~1}{space 4}{txt:=} {space 10}0}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:9._at}:{space 1}{res:{txt:mingtidist~1}{space 4}{txt:=} {space 8}2.5}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col: }{space 2}{res:{txt:ideal_poin~1}{space 4}{txt:=} {space 10}0}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:10._at}:{space 1}{res:{txt:mingtidist~1}{space 4}{txt:=} {space 7}2.75}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col: }{space 2}{res:{txt:ideal_poin~1}{space 4}{txt:=} {space 10}0}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:11._at}:{space 1}{res:{txt:mingtidist~1}{space 4}{txt:=} {space 10}3}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col: }{space 2}{res:{txt:ideal_poin~1}{space 4}{txt:=} {space 10}0}{p_end}
{p2colreset}{...}

{res}{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26} Delta-method
{col 14}{c |}     Margin{col 26}   Std. Err.{col 38}      z{col 46}   P>|z|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 9}_at {c |}
{space 10}1  {c |}{col 14}{res}{space 2} 4.899462{col 26}{space 2} .0572381{col 37}{space 1}   85.60{col 46}{space 3}0.000{col 54}{space 4} 4.787278{col 67}{space 3} 5.011647
{txt}{space 10}2  {c |}{col 14}{res}{space 2}  4.91077{col 26}{space 2} .0555866{col 37}{space 1}   88.34{col 46}{space 3}0.000{col 54}{space 4} 4.801822{col 67}{space 3} 5.019718
{txt}{space 10}3  {c |}{col 14}{res}{space 2} 4.922078{col 26}{space 2} .0553713{col 37}{space 1}   88.89{col 46}{space 3}0.000{col 54}{space 4} 4.813552{col 67}{space 3} 5.030604
{txt}{space 10}4  {c |}{col 14}{res}{space 2} 4.933386{col 26}{space 2} .0566087{col 37}{space 1}   87.15{col 46}{space 3}0.000{col 54}{space 4} 4.822435{col 67}{space 3} 5.044337
{txt}{space 10}5  {c |}{col 14}{res}{space 2} 4.944694{col 26}{space 2} .0592077{col 37}{space 1}   83.51{col 46}{space 3}0.000{col 54}{space 4} 4.828649{col 67}{space 3} 5.060739
{txt}{space 10}6  {c |}{col 14}{res}{space 2} 4.956002{col 26}{space 2} .0630001{col 37}{space 1}   78.67{col 46}{space 3}0.000{col 54}{space 4} 4.832524{col 67}{space 3}  5.07948
{txt}{space 10}7  {c |}{col 14}{res}{space 2} 4.967309{col 26}{space 2} .0677858{col 37}{space 1}   73.28{col 46}{space 3}0.000{col 54}{space 4} 4.834452{col 67}{space 3} 5.100167
{txt}{space 10}8  {c |}{col 14}{res}{space 2} 4.978617{col 26}{space 2} .0733708{col 37}{space 1}   67.86{col 46}{space 3}0.000{col 54}{space 4} 4.834813{col 67}{space 3} 5.122421
{txt}{space 10}9  {c |}{col 14}{res}{space 2} 4.989925{col 26}{space 2} .0795869{col 37}{space 1}   62.70{col 46}{space 3}0.000{col 54}{space 4} 4.833938{col 67}{space 3} 5.145913
{txt}{space 9}10  {c |}{col 14}{res}{space 2} 5.001233{col 26}{space 2} .0862979{col 37}{space 1}   57.95{col 46}{space 3}0.000{col 54}{space 4} 4.832092{col 67}{space 3} 5.170374
{txt}{space 9}11  {c |}{col 14}{res}{space 2} 5.012541{col 26}{space 2} .0933971{col 37}{space 1}   53.67{col 46}{space 3}0.000{col 54}{space 4} 4.829486{col 67}{space 3} 5.195596
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. estimates store align_0
{txt}
{com}. estimates restore mod9fe
{txt}(results {stata estimates replay mod9fe:mod9fe} are active now)

{com}. margins, at(mingtidist_lag1 = (0.5 0.75 1 1.25 1.5 1.75 2 2.25 2.5 2.75 3) ideal_point_lag1 = 1) post
{res}
{txt}Predictive margins{col 51}Number of obs{col 67}= {res}      2450
{txt}Model VCE{col 14}: {res}Robust

{txt}{p2colset 1 14 16 2}{...}
{p2col:Expression}:{space 1}{res:Linear prediction, predict()}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:1._at}:{space 1}{res:{txt:mingtidist~1}{space 4}{txt:=} {space 9}.5}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col: }{space 2}{res:{txt:ideal_poin~1}{space 4}{txt:=} {space 10}1}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:2._at}:{space 1}{res:{txt:mingtidist~1}{space 4}{txt:=} {space 8}.75}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col: }{space 2}{res:{txt:ideal_poin~1}{space 4}{txt:=} {space 10}1}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:3._at}:{space 1}{res:{txt:mingtidist~1}{space 4}{txt:=} {space 10}1}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col: }{space 2}{res:{txt:ideal_poin~1}{space 4}{txt:=} {space 10}1}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:4._at}:{space 1}{res:{txt:mingtidist~1}{space 4}{txt:=} {space 7}1.25}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col: }{space 2}{res:{txt:ideal_poin~1}{space 4}{txt:=} {space 10}1}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:5._at}:{space 1}{res:{txt:mingtidist~1}{space 4}{txt:=} {space 8}1.5}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col: }{space 2}{res:{txt:ideal_poin~1}{space 4}{txt:=} {space 10}1}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:6._at}:{space 1}{res:{txt:mingtidist~1}{space 4}{txt:=} {space 7}1.75}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col: }{space 2}{res:{txt:ideal_poin~1}{space 4}{txt:=} {space 10}1}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:7._at}:{space 1}{res:{txt:mingtidist~1}{space 4}{txt:=} {space 10}2}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col: }{space 2}{res:{txt:ideal_poin~1}{space 4}{txt:=} {space 10}1}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:8._at}:{space 1}{res:{txt:mingtidist~1}{space 4}{txt:=} {space 7}2.25}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col: }{space 2}{res:{txt:ideal_poin~1}{space 4}{txt:=} {space 10}1}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:9._at}:{space 1}{res:{txt:mingtidist~1}{space 4}{txt:=} {space 8}2.5}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col: }{space 2}{res:{txt:ideal_poin~1}{space 4}{txt:=} {space 10}1}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:10._at}:{space 1}{res:{txt:mingtidist~1}{space 4}{txt:=} {space 7}2.75}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col: }{space 2}{res:{txt:ideal_poin~1}{space 4}{txt:=} {space 10}1}{p_end}
{p2colreset}{...}

{txt}{p2colset 1 14 16 2}{...}
{p2col:11._at}:{space 1}{res:{txt:mingtidist~1}{space 4}{txt:=} {space 10}3}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col: }{space 2}{res:{txt:ideal_poin~1}{space 4}{txt:=} {space 10}1}{p_end}
{p2colreset}{...}

{res}{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26} Delta-method
{col 14}{c |}     Margin{col 26}   Std. Err.{col 38}      z{col 46}   P>|z|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 9}_at {c |}
{space 10}1  {c |}{col 14}{res}{space 2} 5.615811{col 26}{space 2} .2065596{col 37}{space 1}   27.19{col 46}{space 3}0.000{col 54}{space 4} 5.210961{col 67}{space 3}  6.02066
{txt}{space 10}2  {c |}{col 14}{res}{space 2} 5.646974{col 26}{space 2} .2047453{col 37}{space 1}   27.58{col 46}{space 3}0.000{col 54}{space 4} 5.245681{col 67}{space 3} 6.048267
{txt}{space 10}3  {c |}{col 14}{res}{space 2} 5.678137{col 26}{space 2} .2044294{col 37}{space 1}   27.78{col 46}{space 3}0.000{col 54}{space 4} 5.277463{col 67}{space 3} 6.078811
{txt}{space 10}4  {c |}{col 14}{res}{space 2} 5.709301{col 26}{space 2} .2056188{col 37}{space 1}   27.77{col 46}{space 3}0.000{col 54}{space 4} 5.306295{col 67}{space 3} 6.112306
{txt}{space 10}5  {c |}{col 14}{res}{space 2} 5.740464{col 26}{space 2} .2082879{col 37}{space 1}   27.56{col 46}{space 3}0.000{col 54}{space 4} 5.332227{col 67}{space 3}   6.1487
{txt}{space 10}6  {c |}{col 14}{res}{space 2} 5.771627{col 26}{space 2} .2123807{col 37}{space 1}   27.18{col 46}{space 3}0.000{col 54}{space 4} 5.355369{col 67}{space 3} 6.187886
{txt}{space 10}7  {c |}{col 14}{res}{space 2}  5.80279{col 26}{space 2} .2178171{col 37}{space 1}   26.64{col 46}{space 3}0.000{col 54}{space 4} 5.375877{col 67}{space 3} 6.229704
{txt}{space 10}8  {c |}{col 14}{res}{space 2} 5.833954{col 26}{space 2} .2244994{col 37}{space 1}   25.99{col 46}{space 3}0.000{col 54}{space 4} 5.393943{col 67}{space 3} 6.273964
{txt}{space 10}9  {c |}{col 14}{res}{space 2} 5.865117{col 26}{space 2} .2323203{col 37}{space 1}   25.25{col 46}{space 3}0.000{col 54}{space 4} 5.409777{col 67}{space 3} 6.320456
{txt}{space 9}10  {c |}{col 14}{res}{space 2}  5.89628{col 26}{space 2} .2411688{col 37}{space 1}   24.45{col 46}{space 3}0.000{col 54}{space 4} 5.423598{col 67}{space 3} 6.368962
{txt}{space 9}11  {c |}{col 14}{res}{space 2} 5.927443{col 26}{space 2} .2509365{col 37}{space 1}   23.62{col 46}{space 3}0.000{col 54}{space 4} 5.435617{col 67}{space 3}  6.41927
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. estimates store align_1
{txt}
{com}. coefplot align_n1 align_1, at ytitle(Predicted log trainees) xtitle (US-centric threat environment) recast(line) lwidth(*2) ciopts(recast(rarea)) ///
>         legend(c(3) r(1) label(2 "-1") label(4 "+1")  title("Ideal point from UNGA voting"))
{res}{txt}
{com}. 
. 
. //appendix table 5 -- alternative measures
. 
. //state strength -- military personnel per capita (World Bank)
. xtreg log_trainees coup_suc_lag1 log_trainees_lag1 milpc_lag1 rebels_combined_lag1##c.ideal_point_lag1  if NATOAndOthers==0 & year>=1999 & iraqaf==0 & regforce==1, re vce(robust)
{res}
{txt}Random-effects GLS regression                   Number of obs      = {res}     2506
{txt}Group variable: {res}ccode                           {txt}Number of groups   = {res}      147

{txt}R-sq:  within  = {res}0.3225                         {txt}Obs per group: min = {res}        1
{txt}       between = {res}0.9764                                        {txt}avg = {res}     17.0
{txt}       overall = {res}0.7238                                        {txt}max = {res}       19

                                                {txt}Wald chi2({res}6{txt})       = {res}  2440.99
{txt}corr(u_i, X)   = {res}0{txt} (assumed)                    Prob > chi2        =    {res}0.0000

{txt}{ralign 105:(Std. Err. adjusted for {res:147} clusters in ccode)}
{hline 40}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 41}{c |}{col 53}    Robust
{col 1}                           log_trainees{col 41}{c |}      Coef.{col 53}   Std. Err.{col 65}      z{col 73}   P>|z|{col 81}     [95% Con{col 94}f. Interval]
{hline 40}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 26}coup_suc_lag1 {c |}{col 41}{res}{space 2}-.7478115{col 53}{space 2} .4696343{col 64}{space 1}   -1.59{col 73}{space 3}0.111{col 81}{space 4}-1.668278{col 94}{space 3} .1726548
{txt}{space 22}log_trainees_lag1 {c |}{col 41}{res}{space 2} .8075479{col 53}{space 2} .0204878{col 64}{space 1}   39.42{col 73}{space 3}0.000{col 81}{space 4} .7673926{col 94}{space 3} .8477033
{txt}{space 29}milpc_lag1 {c |}{col 41}{res}{space 2} -9.15041{col 53}{space 2} 3.535673{col 64}{space 1}   -2.59{col 73}{space 3}0.010{col 81}{space 4} -16.0802{col 94}{space 3}-2.220619
{txt}{space 17}1.rebels_combined_lag1 {c |}{col 41}{res}{space 2} .1709756{col 53}{space 2} .0637597{col 64}{space 1}    2.68{col 73}{space 3}0.007{col 81}{space 4} .0460089{col 94}{space 3} .2959422
{txt}{space 23}ideal_point_lag1 {c |}{col 41}{res}{space 2} .1016793{col 53}{space 2} .0545551{col 64}{space 1}    1.86{col 73}{space 3}0.062{col 81}{space 4}-.0052468{col 94}{space 3} .2086055
{txt}{space 39} {c |}
rebels_combined_lag1#c.ideal_point_lag1 {c |}
{space 37}1  {c |}{col 41}{res}{space 2} .1945922{col 53}{space 2} .0888076{col 64}{space 1}    2.19{col 73}{space 3}0.028{col 81}{space 4} .0205324{col 94}{space 3}  .368652
{txt}{space 39} {c |}
{space 34}_cons {c |}{col 41}{res}{space 2} .9990234{col 53}{space 2} .1150215{col 64}{space 1}    8.69{col 73}{space 3}0.000{col 81}{space 4} .7735855{col 94}{space 3} 1.224461
{txt}{hline 40}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
                                sigma_u {c |} {res}         0
                                {txt}sigma_e {c |} {res} .99155664
                                    {txt}rho {c |} {res}         0{txt}   (fraction of variance due to u_i)
{hline 40}{c BT}{hline 64}

{com}. outreg2 using tableA5.xls, replace title(Cross-sectional time-series estimates, alternate measures) ctitle(Trainees) label
{txt}{browse `"tableA5.xls"'}
{browse `"C:\Users\Theodore McLauchlin\Dropbox\Military training - selection paper\ISQ Submission\Final submission"' :dir}{com} : {txt}{stata `"seeout using "tableA5.txt", label"':seeout}

{com}. xtreg log_trainexp coup_suc_lag1 log_trainexp_lag1 milpc_lag1  rebels_combined_lag1##c.ideal_point_lag1  if NATOAndOthers==0 & year>=1999 & iraqaf==0 & regforce==1, re vce(robust)
{res}
{txt}Random-effects GLS regression                   Number of obs      = {res}     2506
{txt}Group variable: {res}ccode                           {txt}Number of groups   = {res}      147

{txt}R-sq:  within  = {res}0.2701                         {txt}Obs per group: min = {res}        1
{txt}       between = {res}0.9659                                        {txt}avg = {res}     17.0
{txt}       overall = {res}0.7317                                        {txt}max = {res}       19

                                                {txt}Wald chi2({res}6{txt})       = {res}   951.65
{txt}corr(u_i, X)   = {res}0{txt} (assumed)                    Prob > chi2        =    {res}0.0000

{txt}{ralign 105:(Std. Err. adjusted for {res:147} clusters in ccode)}
{hline 40}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 41}{c |}{col 53}    Robust
{col 1}                           log_trainexp{col 41}{c |}      Coef.{col 53}   Std. Err.{col 65}      z{col 73}   P>|z|{col 81}     [95% Con{col 94}f. Interval]
{hline 40}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 26}coup_suc_lag1 {c |}{col 41}{res}{space 2}-2.330846{col 53}{space 2} 1.028777{col 64}{space 1}   -2.27{col 73}{space 3}0.023{col 81}{space 4}-4.347212{col 94}{space 3}-.3144794
{txt}{space 22}log_trainexp_lag1 {c |}{col 41}{res}{space 2} .7728513{col 53}{space 2} .0293239{col 64}{space 1}   26.36{col 73}{space 3}0.000{col 81}{space 4} .7153776{col 94}{space 3}  .830325
{txt}{space 29}milpc_lag1 {c |}{col 41}{res}{space 2}-26.69261{col 53}{space 2}  9.99898{col 64}{space 1}   -2.67{col 73}{space 3}0.008{col 81}{space 4}-46.29025{col 94}{space 3}-7.094968
{txt}{space 17}1.rebels_combined_lag1 {c |}{col 41}{res}{space 2} .1695604{col 53}{space 2} .1335127{col 64}{space 1}    1.27{col 73}{space 3}0.204{col 81}{space 4}-.0921197{col 94}{space 3} .4312404
{txt}{space 23}ideal_point_lag1 {c |}{col 41}{res}{space 2} .2711604{col 53}{space 2} .1416797{col 64}{space 1}    1.91{col 73}{space 3}0.056{col 81}{space 4}-.0065267{col 94}{space 3} .5488475
{txt}{space 39} {c |}
rebels_combined_lag1#c.ideal_point_lag1 {c |}
{space 37}1  {c |}{col 41}{res}{space 2} .3507402{col 53}{space 2} .2377822{col 64}{space 1}    1.48{col 73}{space 3}0.140{col 81}{space 4}-.1153043{col 94}{space 3} .8167846
{txt}{space 39} {c |}
{space 34}_cons {c |}{col 41}{res}{space 2} 3.324263{col 53}{space 2} .4201445{col 64}{space 1}    7.91{col 73}{space 3}0.000{col 81}{space 4} 2.500794{col 94}{space 3} 4.147731
{txt}{hline 40}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
                                sigma_u {c |} {res} .17995045
                                {txt}sigma_e {c |} {res}  1.866444
                                    {txt}rho {c |} {res} .00920996{txt}   (fraction of variance due to u_i)
{hline 40}{c BT}{hline 64}

{com}. outreg2 using tableA5.xls, append ctitle(Expenditures) label
{txt}{browse `"tableA5.xls"'}
{browse `"C:\Users\Theodore McLauchlin\Dropbox\Military training - selection paper\ISQ Submission\Final submission"' :dir}{com} : {txt}{stata `"seeout using "tableA5.txt", label"':seeout}

{com}. //democracy (boix et al)
. xtreg log_trainees coup_suc_lag1 log_trainees_lag1  demtrans_last5 democracy_lag1 if NATOAndOthers==0 & year>=1999 & iraqaf==0 & regforce==1, re vce(robust)
{res}
{txt}Random-effects GLS regression                   Number of obs      = {res}     2459
{txt}Group variable: {res}ccode                           {txt}Number of groups   = {res}      153

{txt}R-sq:  within  = {res}0.2956                         {txt}Obs per group: min = {res}        4
{txt}       between = {res}0.9863                                        {txt}avg = {res}     16.1
{txt}       overall = {res}0.7177                                        {txt}max = {res}       17

                                                {txt}Wald chi2({res}4{txt})       = {res}  2118.05
{txt}corr(u_i, X)   = {res}0{txt} (assumed)                    Prob > chi2        =    {res}0.0000

{txt}{ralign 83:(Std. Err. adjusted for {res:153} clusters in ccode)}
{hline 18}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 19}{c |}{col 31}    Robust
{col 1}     log_trainees{col 19}{c |}      Coef.{col 31}   Std. Err.{col 43}      z{col 51}   P>|z|{col 59}     [95% Con{col 72}f. Interval]
{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 4}coup_suc_lag1 {c |}{col 19}{res}{space 2}-.5132149{col 31}{space 2} .4469921{col 42}{space 1}   -1.15{col 51}{space 3}0.251{col 59}{space 4}-1.389303{col 72}{space 3} .3628736
{txt}log_trainees_lag1 {c |}{col 19}{res}{space 2} .8175832{col 31}{space 2} .0193663{col 42}{space 1}   42.22{col 51}{space 3}0.000{col 59}{space 4} .7796259{col 72}{space 3} .8555404
{txt}{space 3}demtrans_last5 {c |}{col 19}{res}{space 2} .1127207{col 31}{space 2} .0833152{col 42}{space 1}    1.35{col 51}{space 3}0.176{col 59}{space 4}-.0505741{col 72}{space 3} .2760154
{txt}{space 3}democracy_lag1 {c |}{col 19}{res}{space 2} .1455509{col 31}{space 2} .0568807{col 42}{space 1}    2.56{col 51}{space 3}0.011{col 59}{space 4} .0340668{col 72}{space 3} .2570351
{txt}{space 12}_cons {c |}{col 19}{res}{space 2} .8060828{col 31}{space 2} .0976132{col 42}{space 1}    8.26{col 51}{space 3}0.000{col 59}{space 4} .6147645{col 72}{space 3} .9974012
{txt}{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
          sigma_u {c |} {res}         0
          {txt}sigma_e {c |} {res} .98989248
              {txt}rho {c |} {res}         0{txt}   (fraction of variance due to u_i)
{hline 18}{c BT}{hline 64}

{com}. outreg2 using tableA5.xls, append ctitle(Trainees) label
{txt}{browse `"tableA5.xls"'}
{browse `"C:\Users\Theodore McLauchlin\Dropbox\Military training - selection paper\ISQ Submission\Final submission"' :dir}{com} : {txt}{stata `"seeout using "tableA5.txt", label"':seeout}

{com}. xtreg log_trainexp coup_suc_lag1 log_trainexp_lag1 demtrans_last5 democracy_lag1  if NATOAndOthers==0 & year>=1999 & iraqaf==0 & regforce==1, re vce(robust)
{res}
{txt}Random-effects GLS regression                   Number of obs      = {res}     2459
{txt}Group variable: {res}ccode                           {txt}Number of groups   = {res}      153

{txt}R-sq:  within  = {res}0.2420                         {txt}Obs per group: min = {res}        4
{txt}       between = {res}0.9821                                        {txt}avg = {res}     16.1
{txt}       overall = {res}0.7095                                        {txt}max = {res}       17

                                                {txt}Wald chi2({res}4{txt})       = {res}   683.88
{txt}corr(u_i, X)   = {res}0{txt} (assumed)                    Prob > chi2        =    {res}0.0000

{txt}{ralign 83:(Std. Err. adjusted for {res:153} clusters in ccode)}
{hline 18}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 19}{c |}{col 31}    Robust
{col 1}     log_trainexp{col 19}{c |}      Coef.{col 31}   Std. Err.{col 43}      z{col 51}   P>|z|{col 59}     [95% Con{col 72}f. Interval]
{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 4}coup_suc_lag1 {c |}{col 19}{res}{space 2}-1.561112{col 31}{space 2} 1.096761{col 42}{space 1}   -1.42{col 51}{space 3}0.155{col 59}{space 4}-3.710725{col 72}{space 3} .5885006
{txt}log_trainexp_lag1 {c |}{col 19}{res}{space 2} .7935508{col 31}{space 2} .0322456{col 42}{space 1}   24.61{col 51}{space 3}0.000{col 59}{space 4} .7303505{col 72}{space 3} .8567511
{txt}{space 3}demtrans_last5 {c |}{col 19}{res}{space 2} .2155243{col 31}{space 2} .1360012{col 42}{space 1}    1.58{col 51}{space 3}0.113{col 59}{space 4}-.0510332{col 72}{space 3} .4820818
{txt}{space 3}democracy_lag1 {c |}{col 19}{res}{space 2}  .343443{col 31}{space 2} .1168358{col 42}{space 1}    2.94{col 51}{space 3}0.003{col 59}{space 4} .1144491{col 72}{space 3}  .572437
{txt}{space 12}_cons {c |}{col 19}{res}{space 2} 2.595295{col 31}{space 2} .4449315{col 42}{space 1}    5.83{col 51}{space 3}0.000{col 59}{space 4} 1.723245{col 72}{space 3} 3.467345
{txt}{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
          sigma_u {c |} {res}         0
          {txt}sigma_e {c |} {res} 1.8604857
              {txt}rho {c |} {res}         0{txt}   (fraction of variance due to u_i)
{hline 18}{c BT}{hline 64}

{com}. outreg2 using tableA5.xls, append ctitle(Expenditures) label
{txt}{browse `"tableA5.xls"'}
{browse `"C:\Users\Theodore McLauchlin\Dropbox\Military training - selection paper\ISQ Submission\Final submission"' :dir}{com} : {txt}{stata `"seeout using "tableA5.txt", label"':seeout}

{com}. //full model
. xtreg log_trainees coup_suc_lag1 log_trainees_lag1  threat_lag1 c.mingtidist_lag1##c.ideal_point_lag1 milpc_lag1  rebels_combined_lag1##c.ideal_point_lag1 demtrans_last5 democracy_lag1 log_wb_pop_lag1 if NATOAndOthers==0 & year>=1999 & iraqaf==0 & regforce==1, re vce(robust)
{txt}note: ideal_point_lag1 omitted because of collinearity
{res}
{txt}Random-effects GLS regression                   Number of obs      = {res}     2240
{txt}Group variable: {res}ccode                           {txt}Number of groups   = {res}      147

{txt}R-sq:  within  = {res}0.3046                         {txt}Obs per group: min = {res}        1
{txt}       between = {res}0.9684                                        {txt}avg = {res}     15.2
{txt}       overall = {res}0.7306                                        {txt}max = {res}       17

                                                {txt}Wald chi2({res}12{txt})      = {res}  9077.38
{txt}corr(u_i, X)   = {res}0{txt} (assumed)                    Prob > chi2        =    {res}0.0000

{txt}{ralign 105:(Std. Err. adjusted for {res:147} clusters in ccode)}
{hline 40}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 41}{c |}{col 53}    Robust
{col 1}                           log_trainees{col 41}{c |}      Coef.{col 53}   Std. Err.{col 65}      z{col 73}   P>|z|{col 81}     [95% Con{col 94}f. Interval]
{hline 40}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 26}coup_suc_lag1 {c |}{col 41}{res}{space 2}-.7783078{col 53}{space 2} .4625526{col 64}{space 1}   -1.68{col 73}{space 3}0.092{col 81}{space 4}-1.684894{col 94}{space 3} .1282786
{txt}{space 22}log_trainees_lag1 {c |}{col 41}{res}{space 2} .7696679{col 53}{space 2} .0252682{col 64}{space 1}   30.46{col 73}{space 3}0.000{col 81}{space 4} .7201431{col 94}{space 3} .8191926
{txt}{space 28}threat_lag1 {c |}{col 41}{res}{space 2}-.8576569{col 53}{space 2} .1450706{col 64}{space 1}   -5.91{col 73}{space 3}0.000{col 81}{space 4} -1.14199{col 94}{space 3}-.5733237
{txt}{space 24}mingtidist_lag1 {c |}{col 41}{res}{space 2}  .051026{col 53}{space 2} .0213914{col 64}{space 1}    2.39{col 73}{space 3}0.017{col 81}{space 4} .0090997{col 94}{space 3} .0929523
{txt}{space 23}ideal_point_lag1 {c |}{col 41}{res}{space 2}-.0144966{col 53}{space 2} .0822457{col 64}{space 1}   -0.18{col 73}{space 3}0.860{col 81}{space 4}-.1756953{col 94}{space 3} .1467021
{txt}{space 39} {c |}
{space 3}c.mingtidist_lag1#c.ideal_point_lag1 {c |}{col 41}{res}{space 2} .0622788{col 53}{space 2} .0263659{col 64}{space 1}    2.36{col 73}{space 3}0.018{col 81}{space 4} .0106027{col 94}{space 3} .1139549
{txt}{space 39} {c |}
{space 29}milpc_lag1 {c |}{col 41}{res}{space 2}-2.839043{col 53}{space 2} 4.956315{col 64}{space 1}   -0.57{col 73}{space 3}0.567{col 81}{space 4}-12.55324{col 94}{space 3} 6.875156
{txt}{space 17}1.rebels_combined_lag1 {c |}{col 41}{res}{space 2} .0533967{col 53}{space 2} .0725419{col 64}{space 1}    0.74{col 73}{space 3}0.462{col 81}{space 4}-.0887828{col 94}{space 3} .1955762
{txt}{space 23}ideal_point_lag1 {c |}{col 41}{res}{space 2}        0{col 53}{txt}  (omitted)
{space 39} {c |}
rebels_combined_lag1#c.ideal_point_lag1 {c |}
{space 37}1  {c |}{col 41}{res}{space 2} .2320122{col 53}{space 2} .0979826{col 64}{space 1}    2.37{col 73}{space 3}0.018{col 81}{space 4} .0399697{col 94}{space 3} .4240546
{txt}{space 39} {c |}
{space 25}demtrans_last5 {c |}{col 41}{res}{space 2}-.0031605{col 53}{space 2} .0740743{col 64}{space 1}   -0.04{col 73}{space 3}0.966{col 81}{space 4}-.1483435{col 94}{space 3} .1420225
{txt}{space 25}democracy_lag1 {c |}{col 41}{res}{space 2} .0629466{col 53}{space 2} .0688416{col 64}{space 1}    0.91{col 73}{space 3}0.361{col 81}{space 4}-.0719805{col 94}{space 3} .1978737
{txt}{space 24}log_wb_pop_lag1 {c |}{col 41}{res}{space 2} .0996043{col 53}{space 2} .0184628{col 64}{space 1}    5.39{col 73}{space 3}0.000{col 81}{space 4} .0634178{col 94}{space 3} .1357908
{txt}{space 34}_cons {c |}{col 41}{res}{space 2}-.4667173{col 53}{space 2} .2547314{col 64}{space 1}   -1.83{col 73}{space 3}0.067{col 81}{space 4}-.9659817{col 94}{space 3} .0325471
{txt}{hline 40}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
                                sigma_u {c |} {res}         0
                                {txt}sigma_e {c |} {res} .96504462
                                    {txt}rho {c |} {res}         0{txt}   (fraction of variance due to u_i)
{hline 40}{c BT}{hline 64}

{com}. outreg2 using tableA5.xls, append ctitle(Trainees) label
{txt}{browse `"tableA5.xls"'}
{browse `"C:\Users\Theodore McLauchlin\Dropbox\Military training - selection paper\ISQ Submission\Final submission"' :dir}{com} : {txt}{stata `"seeout using "tableA5.txt", label"':seeout}

{com}. xtreg log_trainexp coup_suc_lag1 log_trainexp_lag1 threat_lag1 c.mingtidist_lag1##c.ideal_point_lag1 milpc_lag1  rebels_combined_lag1##c.ideal_point_lag1 demtrans_last5 democracy_lag1 log_wb_pop_lag1  if NATOAndOthers==0 & year>=1999 & iraqaf==0 & regforce==1, re vce(robust)
{txt}note: ideal_point_lag1 omitted because of collinearity
{res}
{txt}Random-effects GLS regression                   Number of obs      = {res}     2240
{txt}Group variable: {res}ccode                           {txt}Number of groups   = {res}      147

{txt}R-sq:  within  = {res}0.2436                         {txt}Obs per group: min = {res}        1
{txt}       between = {res}0.9565                                        {txt}avg = {res}     15.2
{txt}       overall = {res}0.7416                                        {txt}max = {res}       17

                                                {txt}Wald chi2({res}12{txt})      = {res}  2785.92
{txt}corr(u_i, X)   = {res}0{txt} (assumed)                    Prob > chi2        =    {res}0.0000

{txt}{ralign 105:(Std. Err. adjusted for {res:147} clusters in ccode)}
{hline 40}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 41}{c |}{col 53}    Robust
{col 1}                           log_trainexp{col 41}{c |}      Coef.{col 53}   Std. Err.{col 65}      z{col 73}   P>|z|{col 81}     [95% Con{col 94}f. Interval]
{hline 40}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 26}coup_suc_lag1 {c |}{col 41}{res}{space 2}-2.413497{col 53}{space 2} 1.041919{col 64}{space 1}   -2.32{col 73}{space 3}0.021{col 81}{space 4}-4.455622{col 94}{space 3}-.3713727
{txt}{space 22}log_trainexp_lag1 {c |}{col 41}{res}{space 2} .7336114{col 53}{space 2} .0387841{col 64}{space 1}   18.92{col 73}{space 3}0.000{col 81}{space 4} .6575961{col 94}{space 3} .8096268
{txt}{space 28}threat_lag1 {c |}{col 41}{res}{space 2}-2.615943{col 53}{space 2} .5361541{col 64}{space 1}   -4.88{col 73}{space 3}0.000{col 81}{space 4}-3.666785{col 94}{space 3}  -1.5651
{txt}{space 24}mingtidist_lag1 {c |}{col 41}{res}{space 2} .0908935{col 53}{space 2} .0445131{col 64}{space 1}    2.04{col 73}{space 3}0.041{col 81}{space 4} .0036494{col 94}{space 3} .1781376
{txt}{space 23}ideal_point_lag1 {c |}{col 41}{res}{space 2} .0652472{col 53}{space 2} .2039065{col 64}{space 1}    0.32{col 73}{space 3}0.749{col 81}{space 4}-.3344023{col 94}{space 3} .4648966
{txt}{space 39} {c |}
{space 3}c.mingtidist_lag1#c.ideal_point_lag1 {c |}{col 41}{res}{space 2}  .113576{col 53}{space 2} .0620058{col 64}{space 1}    1.83{col 73}{space 3}0.067{col 81}{space 4}-.0079531{col 94}{space 3}  .235105
{txt}{space 39} {c |}
{space 29}milpc_lag1 {c |}{col 41}{res}{space 2}-13.48312{col 53}{space 2} 13.00135{col 64}{space 1}   -1.04{col 73}{space 3}0.300{col 81}{space 4} -38.9653{col 94}{space 3} 11.99907
{txt}{space 17}1.rebels_combined_lag1 {c |}{col 41}{res}{space 2} .0174079{col 53}{space 2}  .154884{col 64}{space 1}    0.11{col 73}{space 3}0.911{col 81}{space 4}-.2861592{col 94}{space 3} .3209749
{txt}{space 23}ideal_point_lag1 {c |}{col 41}{res}{space 2}        0{col 53}{txt}  (omitted)
{space 39} {c |}
rebels_combined_lag1#c.ideal_point_lag1 {c |}
{space 37}1  {c |}{col 41}{res}{space 2} .4176432{col 53}{space 2} .2624466{col 64}{space 1}    1.59{col 73}{space 3}0.112{col 81}{space 4}-.0967427{col 94}{space 3} .9320292
{txt}{space 39} {c |}
{space 25}demtrans_last5 {c |}{col 41}{res}{space 2} .0273974{col 53}{space 2} .0801736{col 64}{space 1}    0.34{col 73}{space 3}0.733{col 81}{space 4}  -.12974{col 94}{space 3} .1845348
{txt}{space 25}democracy_lag1 {c |}{col 41}{res}{space 2} .0021498{col 53}{space 2} .1374483{col 64}{space 1}    0.02{col 73}{space 3}0.988{col 81}{space 4}-.2672439{col 94}{space 3} .2715434
{txt}{space 24}log_wb_pop_lag1 {c |}{col 41}{res}{space 2} .1218627{col 53}{space 2} .0453956{col 64}{space 1}    2.68{col 73}{space 3}0.007{col 81}{space 4} .0328889{col 94}{space 3} .2108364
{txt}{space 34}_cons {c |}{col 41}{res}{space 2} 1.825201{col 53}{space 2} .6567452{col 64}{space 1}    2.78{col 73}{space 3}0.005{col 81}{space 4} .5380041{col 94}{space 3} 3.112398
{txt}{hline 40}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
                                sigma_u {c |} {res}  .1620297
                                {txt}sigma_e {c |} {res} 1.7640982
                                    {txt}rho {c |} {res} .00836557{txt}   (fraction of variance due to u_i)
{hline 40}{c BT}{hline 64}

{com}. outreg2 using tableA5.xls, append ctitle(Expenditures) label
{txt}{browse `"tableA5.xls"'}
{browse `"C:\Users\Theodore McLauchlin\Dropbox\Military training - selection paper\ISQ Submission\Final submission"' :dir}{com} : {txt}{stata `"seeout using "tableA5.txt", label"':seeout}

{com}. 
. //appendix table 6 - included and excluded country years
. preserve
{txt}
{com}. keep if year >=1999 // first year of training data; there are prior years due to lagged independent variables
{txt}(1134 observations deleted)

{com}. drop if year >=2008 & ccode == 347 // Kosovo, independent in 2008
{txt}(11 observations deleted)

{com}. drop if year >=2011 & ccode == 626 // South Sudan, independent in 2011
{txt}(8 observations deleted)

{com}. sort country year
{txt}
{com}. keep country ccode year mainsample log_trainees coup_suc_lag1 log_trainees_lag1  threat_lag1 mingtidist_lag1 ideal_point_lag1 imf_tax_lag1  rebels_combined_lag1 demtrans_last5_ert v2x_regime_lag1 log_wb_pop_lag1 NATOAndOthers iraqaf regforce
{txt}
{com}. export excel using "sample data.xlsx", firstrow(varlabels)
{res}{txt}file sample data.xlsx saved

{com}. restore
{txt}
{com}. 
. log close
      {txt}name:  {res}<unnamed>
       {txt}log:  {res}C:\Users\Theodore McLauchlin\Dropbox\Military training - selection paper\ISQ Submission\Final submission\traintheworld.smcl
  {txt}log type:  {res}smcl
 {txt}closed on:  {res}22 Feb 2024, 14:30:04
{txt}{.-}
{smcl}
{txt}{sf}{ul off}